Re: monitoring changes in a local property
Re: monitoring changes in a local property
- Subject: Re: monitoring changes in a local property
- From: Roland King <email@hidden>
- Date: Tue, 08 May 2012 11:40:34 +0800
mySelection = [ newSelection copy ];
is all you need.
On May 8, 2012, at 11:38 AM, Koen van der Drift wrote:
>
> On May 7, 2012, at 11:28 PM, Roland King wrote:
>
>> -(void)setMySelection:(NSArray*)newSelection
>> {
>> // set whatever instance variable you have for mySelection, with appropriate memory management if necessary
>
>
> I thought about that too, but how do I do that when using ARC? Can I still do this:
>
> [mySelection release];
> [mySelection = [newSelection copy]];
>
> or something along those lines?
>
> - Koen.
_______________________________________________
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