Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: earliest code that runs?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: earliest code that runs?



On Jul 27, 2004, at 6:08 PM, Matt Neuburg wrote:

I was assuming that a class's +initialize method would be called before any
instance's init method, but no. (I thought that because an example in the
docs seemed to imply it.)

+initialize is called before the init method of any instance *of the same class*...

+initialize is a good place to, for example, register value transformers that will be used by instances of the class.

mmalc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >earliest code that runs? (From: Matt Neuburg <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.