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 <ncar...@mac.com> 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 (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com