Re: More memory allocation questions
Re: More memory allocation questions
- Subject: Re: More memory allocation questions
- From: "John C. Randolph" <email@hidden>
- Date: Tue, 30 Jul 2002 10:12:58 -0700
On Tuesday, July 30, 2002, at 05:44 AM, Ondra Cada wrote:
On Tuesday, July 30, 2002, at 04:19 , Andy wrote:
+initialize ?
I've seen some people recommend using it, and it seems to be used in
GNUStep.
As a newbie, you don't need it ;)
Otherwise, I believe it is very nicely documented: a method
automatically (by the runtime) sent to a class just before the class
gets its first message. In plain ObjC it's a very good place for
initialization; in OpenStep/Cocoa with its plethora of awakeFromNibs
and applicationDidFinishLaunchings and so forth it's more or less
unused today.
I still use +initialize and sometimes, I still use +load.
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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.