Re: objectAtIndex
Re: objectAtIndex
- Subject: Re: objectAtIndex
- From: Nava Carmon <email@hidden>
- Date: Mon, 02 Nov 2009 09:17:12 +0200
Thank you, that answers my question,
Nava
On Nov 1, 2009, at 10:24 PM, Sherm Pendley wrote:
On Sun, Nov 1, 2009 at 2:44 PM, Nava Carmon <email@hidden> wrote:
NSObject *anObject = [anArray objectAtIndex:i];
...
Should I release it?
No. You didn't create anObject with +alloc or a method beginning with
-copy, nor did you send it a -retain message. Therefore you do not own
it and must not release it.
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