Hacker News new | ask | show | jobs
by stephth 4916 days ago
Displaying his characteristic brilliance and familiarity of Cocoa internals Cédric Luthi submitted a reverse-engineered implementation of the NString equality methods. Fascinating!

Forgive my ignorance, but how do you go about and reverse engineer NSString equality? Looking at the code is interesting but what I'd really like to understand is where it comes from and how it was extracted; is it supposed to be close to the original implementation, is it an informed guess based on CFLite, ...? Please be patient and again forgive my ignorance.

2 comments

He probably used Hopper, which he has tweeted about. http://www.hopperapp.com/
I can't say for sure, but I'd assume that he manually decompiled the code in the framework.