Re: NSArray- help!
Re: NSArray- help!
- Subject: Re: NSArray- help!
- From: j o a r <email@hidden>
- Date: Sat, 2 Nov 2002 18:01:02 +0100
It is not mentioned in the method, but it is documented in the more
general docs on memory management and the layout of the Cocoa
frameworks. Read one of the many memory management articles available
from Apple, or at <
http://www.stepwise.com/>.
In brief, all classmethods that returns instances will return
autoreleased instances. Most often they are available in pairs, like
the one in your example:
+ arrayWithObjects:
- initWithObjects:
j o a r
On Saturday, Nov 2, 2002, at 17:56 Europe/Stockholm, Dave Sopchak wrote:
This is interesting. It doesn't appear to mention the autorelease
property in the docs. How did you know this and should I be on the
lookout for this sort of behavior in other things?
_______________________________________________
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.