• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Enabling NSZombieEnabled programatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Enabling NSZombieEnabled programatically


  • Subject: Re: Enabling NSZombieEnabled programatically
  • From: "Stephen J. Butler" <email@hidden>
  • Date: Sun, 10 Jan 2010 00:13:33 -0600

On Sat, Jan 9, 2010 at 11:49 PM, Ron Fleckner
<email@hidden> 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 (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

References: 
 >Enabling NSZombieEnabled programatically (From: Graham Cox <email@hidden>)
 >Re: Enabling NSZombieEnabled programatically (From: "Sean McBride" <email@hidden>)
 >Re: Enabling NSZombieEnabled programatically (From: Jim Correia <email@hidden>)
 >Re: Enabling NSZombieEnabled programatically (From: Graham Cox <email@hidden>)
 >Re: Enabling NSZombieEnabled programatically (From: Jim Correia <email@hidden>)
 >Re: Enabling NSZombieEnabled programatically (From: Ron Fleckner <email@hidden>)

  • Prev by Date: Re: [self frame].size.width reporting incorrectly
  • Next by Date: Re: Enabling NSZombieEnabled programatically
  • Previous by thread: Re: Enabling NSZombieEnabled programatically
  • Next by thread: Re: Enabling NSZombieEnabled programatically
  • Index(es):
    • Date
    • Thread