Re: Very interesting ordering caveat with NSArray arrayWithObjects:
Re: Very interesting ordering caveat with NSArray arrayWithObjects:
- Subject: Re: Very interesting ordering caveat with NSArray arrayWithObjects:
- From: Sherm Pendley <email@hidden>
- Date: Sat, 4 Apr 2009 09:51:25 -0400
On Fri, Apr 3, 2009 at 8:30 PM, Eric Hermanson <email@hidden> wrote:
[MyCounterClass newObject] is a static method that returns a new
> autoreleased instance
A method that begins with the word "new" is supposed to return an object
that you own. See:
<
http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmObjectOwnership.html#//apple_ref/doc/uid/20000043-SW1
>
sherm--
--
Cocoa programming in Perl: http://camelbones.sourceforge.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden