Re: controller question
Re: controller question
- Subject: Re: controller question
- From: Quincey Morris <email@hidden>
- Date: Mon, 26 Sep 2011 20:22:46 -0700
On Sep 26, 2011, at 19:03 , Ariel Feinerman wrote:
> if I use persistence NSMutableArray as content array in NSArrayController so
> [arrayController setContent: m_array]; will controller copy one or retain?
The array controller will *observe* the array, not copy it.
> So every deletion or addition in the controller will come back to origin.
Yes.
> Or we must synchronize one or get from controller to write to url?
No, you don't have to either of those things.
However, if you modify the array directly, you have to do it KVO compliantly, or the array controller won't see the change.
_______________________________________________
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