Re: retain variables between classes
Re: retain variables between classes
- Subject: Re: retain variables between classes
- From: mmalcolm crawford <email@hidden>
- Date: Tue, 16 Dec 2003 12:17:18 -0800
On Dec 16, 2003, at 11:06 AM, Matt Gillette wrote:
I think copy will be your answer, but you should look at the
documentation to see how it works.
[array autorelease] //I'm not sure about this part
array = [inArray copy]; //Copy automatically retains I think, so no
need to retain
The semantics of release/autorelese and copy, and accessor methods, are
well-documented -- see various articles listed in:
<
http://www.alastairs-place.net/cocoa/faq.txt>
If the array is supposed to be mutable, then you should use:
array = [inArray mutableCopy];
mmalc
_______________________________________________
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.