• 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
NSManagedObjectContextObjectsDidChangeNotification in loaded nibs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSManagedObjectContextObjectsDidChangeNotification in loaded nibs


  • Subject: NSManagedObjectContextObjectsDidChangeNotification in loaded nibs
  • From: SA Dev <email@hidden>
  • Date: Fri, 13 May 2005 21:04:39 -0400

Hey, list:

I've got an NSPersistentDocument that loads an 'entry editor' nib for individual "Entry" managed objects. The editor opens fine and several text fields and textviews are bound properly and work just fine.

Within that nib, I have an array controller whose contentSet binding is bound to the Entry Controller's selection using the model key path "linkedEntries". This links to other related entries. The linked entries display just fine once linked and everything is peachy there.

The only problem is when a linked entry 'published' state is changed in the main document's nib (by a bound checkbox in a table view), any opened 'entry editors' displaying the edited entry as a linked entry will not display the change in state until the table view is clicked or otherwise forced to refresh.

Now here's where it gets weird. I thought I'd force it by registering the editor to listen for NSManagedObjectContextObjectsDidChangeNotification. I even left the object set to nil so it'd get all contexts' notifications just to make sure ... but it's just not receiving the notifications when other parts of my app (within the main document's nib) are receiving them just fine for any managed object's edits.

  What gives?


_______________________________________________ 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
  • Follow-Ups:
    • Re: NSManagedObjectContextObjectsDidChangeNotification in loaded nibs
      • From: SA Dev <email@hidden>
  • Prev by Date: problem unmounting and ejecting a disk image
  • Next by Date: Re: Add metadata to my files for Spotlight
  • Previous by thread: Re: problem unmounting and ejecting a disk image
  • Next by thread: Re: NSManagedObjectContextObjectsDidChangeNotification in loaded nibs
  • Index(es):
    • Date
    • Thread