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 (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

Reply via email to