On Sat, Jan 9, 2010 at 11:49 PM, Ron Fleckner <ronfleck...@ozemail.com.au> wrote: > Hmm... I'm interested in this. But how can code be executed before main() > gets control? Isn't main() the first thing that gets called? Or would it > be in a helper app which sets your target app's environment variables?
Plenty of things. Objective-C has +load and C/C++ has __attribute__(constructor) functions. Nice rundown of the order here: <http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/Reference/Reference.html#//apple_ref/doc/uid/20000050-load> Not sure if you could set NSZombieEnabled in any of them though. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com