• 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: NSArrayController question...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSArrayController question...


  • Subject: Re: NSArrayController question...
  • From: T Reaves <email@hidden>
  • Date: Mon, 30 May 2005 21:28:03 -0400


On May 30, 2005, at 6:41 PM, mmalcolm crawford wrote:


On May 30, 2005, at 3:27 PM, T Reaves wrote:

    I thought setting their managedObjectContext binding did that.

Ummm, no, all that does is specify the managed object context...

With the fist one, for it to display the extent of the entity, that is all I had to do.

What other options are set for the controller...?

managedObjectContext & entity are all that are specified for each of the two controllers. On controller shows all instance of the entity, as well as allowing adds & deletes, and the second controller shows no instances of the entity.


Each array controller manages its own array. If you don't do anything to keep them synchronised, they won't be synchronised...



That would explain why they would get out of sync, but their initial state (an array of all instances) should be the same.

If I read in an array and send setContent:myArray on both, will that insure they stay in sync?


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >NSArrayController question... (From: T Reaves <email@hidden>)
 >Re: NSArrayController question... (From: mmalcolm crawford <email@hidden>)
 >Re: NSArrayController question... (From: T Reaves <email@hidden>)
 >Re: NSArrayController question... (From: mmalcolm crawford <email@hidden>)
 >Re: NSArrayController question... (From: T Reaves <email@hidden>)
 >Re: NSArrayController question... (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: Exception raised during posting of notification
  • Next by Date: Re: Tiger Decoding problem
  • Previous by thread: Re: NSArrayController question...
  • Next by thread: Custom cell in NSTableView
  • Index(es):
    • Date
    • Thread