Re: More memory allocation questions
Re: More memory allocation questions
- Subject: Re: More memory allocation questions
- From: Ondra Cada <email@hidden>
- Date: Tue, 30 Jul 2002 19:44:57 +0200
On Tuesday, July 30, 2002, at 07:12 , John C. Randolph wrote:
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.
Well, more or less does not mean absolutely, does it? ;)
- in, I guess, some 40-odd per cent of cases when +initialize was
necessary once it might be more conveniently replaced by other place of
initialization;
- in, I guess, some 40-odd per cent of cases it is utterly unimportant
where you place the initialization to;
- only in, I guess, the remaining 20-odd per cent of cases +initialize
brings some advantages.
As for newbies, I seriously doubt they would bump into those 20%, and
there are other things they should grasp before.
That all is not to say there's anything wrong with +initialize -- I use it
occassionally myself. Just that (the knowledge of it) seems to me
relatively unimportant.
Incidentally, +load I use more frequently than +initialize, for in cases
where +load is in order there is usually no other possibility at all ;)
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
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.