Re: Enabling NSZombieEnabled programatically
Re: Enabling NSZombieEnabled programatically
- Subject: Re: Enabling NSZombieEnabled programatically
- From: Ron Fleckner <email@hidden>
- Date: Sun, 10 Jan 2010 17:36:14 +1100
On 10/01/2010, at 5:17 PM, Dave Keck 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?
See the docs for +load for some ideas:
http://developer.apple.com/mac/library/documentation/cocoa/reference/Foundation/Classes/NSObject_Class/Reference/Reference.html#/
/apple_ref/occ/clm/NSObject/load
OK, thanks Dave and Stephen. I think I'll have to find some
documentation which lists the order of function calls at app startup,
though, because the documentation for +load doesn't specifically say
anything about app startup, just class initialization, which I'm
assuming is a different process. In fact, my uninformed guess is that
class initialization would come more or less last in the process of
starting an application. But, that's now my job to find out if I can.
Ron
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden