4 ms·
Wil Shipley has always been my programming hero, growing up. I spent a lot of time reading his Pimp my Code series, and learned quite a few things about Cocoa f
by SeoxyS 13y ago
Wil Shipley has always been my programming hero, growing up. I spent a lot of time reading his Pimp my Code series, and learned quite a few things about Cocoa from him. Not only is he a great coder, he's also an incredibly compelling writer and speaker.
http://blog.wilshipley.com/2005/07/self-stupid-init.html http://blog.wilshipley.com/2005/07/self-stupid-init.html
- wil_shipley 13y agoThank you so much! Unfortunately my [super init] thing is now wrong—Apple has modified the runtime and actually reserves the right to change the object returned by [super init] from the object you allocated.
- kenferry 13y agoHa. Hi Wil! Here's an updated link to the source code described there. Unfortunately it'd need some updating to compile - ObjC cut off access to the raw class structs in the runtime. http://kenferry.com/temp/WilShipleyInitChallenge.zip http://kenferry.com/temp/WilShipleyInitChallenge.zip
- wil_shipley 13y agoMan, I'd forgotten about that. I really have to update the old entries so they're easy to find and contain responses and are validated for Mavericks.
- kenferry 13y agoI just updated it for Mavericks, for the heck of it. The code got simpler.