Crazy thought… what if your decompiled Objective-C code looked like Objective-C code?
Today's journey: implementing an Objective-C “pseudo-language” view for Binary Ninja.
Crazy thought… what if your decompiled Objective-C code looked like Objective-C code?
Today's journey: implementing an Objective-C “pseudo-language” view for Binary Ninja.
My plug-in providing this additional analysis is available at https://github.com/bdash/bn-objc-extras
I've been experimenting with improving Binary Ninja's analysis of Objective-C code recently. Having the ability to hide Obj-C runtime reference counting calls, and apply type information based on [super init] and objc_alloc_init calls can dramatically improve the readability (and in some cases even accuracy!) of the decompiled code.
In #Swift, it's easy to get error messages wrong. It's due to a design flaw in the "Error" protocol itself, introduced for #ObjectiveC compatibility. I've seen people write below code all the time. I fixed this flaw in #ErrorKit: Just conform your errors to "Throwable" instead! 💯
Learn more: 👇 #iOSDev #ErrorHandling #DevTips
https://www.fline.dev/swift-error-handling-done-right-overcoming-the-objective-c-error-legacy/
Wow, a love letter to a #programming language that makes a turtle crossing the road look like a speedster. 🚗💨 Apparently, Objective-C was the Esperanto of code until the world realized it'd rather speak Klingon. 🖖
https://www.wired.com/story/objective-c-programming-language-verbose/ #loveletter #ObjectiveC #techhumor #codinglanguages #turtlepower #HackerNews #ngated
The Subjective Charms of Objective-C
https://www.wired.com/story/objective-c-programming-language-verbose/
#HackerNews #ObjectiveC #Charms #Programming #Language #Tech #Trends #Wired
DarwinKit looks interesting. It’s a Golang Framework to build macOS apps and lets you call Objective-C APIs.
#golang #macos #macdev #objectivec #appkit
@kkolakowski it works really well for #ObjectiveC codebases.
Sometimes being an open-source maintainer is nice. I haven't done paid consulting for the GNUstep Objective-C Runtime for ages (I wasn't doing enough for it to be worth the tax effort and I'm not always able to commit to doing things in a sufficiently timely fashion to set up the expectations that being paid creates), so I added a note a while ago telling people to donate to Murray Edwards if they find the project useful.
Last week, I got the following email from the nice folks at Algoriddim saying (abridged):
I just wanted to drop you a note to let you know that we appreciate your continued work on the GNUstep runtime, and that we’ve made another donation to Murray Edwards to support women in computer science.
Always nice to see things being paid forwards.
Hmmm… setting
set_source_files_properties(Sourcefile.mm PROPERTIES COMPILE_FLAGS "-fobjc-arc")
for each file seems to fix the issue, though now I’m getting a link error on Swift. Anyway, on to the next error, I guess.
#CMake #swift #CPlusPlus #ObjectiveCPlusPlus #ObjectiveC #arc
OK, I'm trying to build some mixed C++, ObjC and Swift code with CMake (CLion).
Since the Xcode generator doesn’t seem to work with Swift anymore, I switched over to Ninja, and now all ObjC files are built without ARC.
How do I tell CMake with Ninja to build ObjC(++) files with ARC, but not Swift files??
#CMake #swift #CPlusPlus #ObjectiveCPlusPlus #ObjectiveC #arc
After working with Objective-C again after a very long time, I have to say, it's actually quite nice.
In hindsight, I have to agree. An improved Objective-C with some Swift elements might have been nicer compared to what Swift has become.
I also got the feeling that the problem wasn't Objective-C, but rather the terrible APIs Apple forced developers to use, such as Storyboards and Interface Builder.
#macosdev #iosdev #swift #objectivec
Auch wenn es mich selbst schon nervt, ich muss euch nochmal belaestigen...
Ich suche ab sofort einen neuen Job als #iOS und/oder #macOS Software-Entwickler. Ich hab viele Jahre Erfahrung auf dem Gebiet, kenne #ObjectiveC, #Swift, #SwiftUI, #Git, #Xcode und... naja, die ganze Toolchain drumherum eben.
Ich suche eine Remote-Only Festanstellung, keinen Freelance-Job (Vorzugsweise in Österreich, Deutschland geht aber auch). Wenn es in der Naehe von #Bregenz oder #Dornbirn ist, dann auch gerne Onsite.
Wenn ihr jemanden kennt, der jemanden kennt... ihr wisst schon.
Ich danke euch fuers rege Teilen/Boosten. 🙏🏻
:boost_ok:
@woolie
Guessing it’s a 3D array? Never worked with #swift but have worked with #objectivec and I got really confused with the array syntax there. I’m guessing the C was obfuscated by the #smalltalk. If #swift is based around C (and I’m going to guess it isn’t), then an array would be nothing more than a pointer. And a 3D array would be declared as foo[][][]. The tricky part was the memory allocation if you didn’t know the size ahead of time and had to allocate dynamically.
🚨 Breaking News: #Xcode uses the internet! 🚨 Apparently, Apple’s dev tool has a secret side gig as a #chatterbox 📞. Who knew? Maybe Xcode is just trying to #escape its Objective-C prison and find some Swift friends. 😂
https://lapcatsoftware.com/articles/2025/2/5.html?__readwiseLocation= #Internet #ObjectiveC #SwiftFriends #HackerNews #ngated
Is there something like SwiftFormat for Objective-C? I think I've used Uncrustify but maybe there is something better out there?
#iosdev #macosdev #objectivec
@isaiah Swift concurrency feels like a lot of problems that we never had are now possible thanks to pervasive use of async. I miss #objectivec . After some deliberations, I turned to #ada for more sanity for future non-Apple platform projects.
🚨 BREAKING: #Xcode is a Snoopy McSnoopface, constantly phoning home like a clingy ex. 🤳 Apparently, Objective-C and #JavaScript are faster than #Swift, who knew? 🙄 But wait, turn off the internet and magically, Xcode stops dragging its feet. So, disconnect from WiFi to speed up builds—because living in the 90s is practical, right? 💾
https://lapcatsoftware.com/articles/2025/2/5.html #Snooping #ObjectiveC #Performance #Hacks #HackerNews #ngated
🚀 Calling all iOS developers! Are you still incorporating Objective-C into your projects? Share your thoughts and experiences below! #iOSDev #ObjectiveC #swift