• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: controller question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: controller question
      • From: Keary Suska <email@hidden>
References: 
 >controller question (From: Ariel Feinerman <email@hidden>)

  • Prev by Date: controller question
  • Next by Date: [Moderator[ Re: OT -Dev forums
  • Previous by thread: controller question
  • Next by thread: Re: controller question
  • Index(es):
    • Date
    • Thread