• 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: More memory allocation questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: More memory allocation questions
      • From: Ondra Cada <email@hidden>
References: 
 >Re: More memory allocation questions (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: What's the best way saving a string into PDF?
  • Next by Date: Differing object specifiers
  • Previous by thread: Re: More memory allocation questions
  • Next by thread: Re: More memory allocation questions
  • Index(es):
    • Date
    • Thread