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

Re: NSManagedObjectContextObjectsDidChangeNotification in loaded nibs


  • Subject: Re: NSManagedObjectContextObjectsDidChangeNotification in loaded nibs
  • From: SA Dev <email@hidden>
  • Date: Sat, 14 May 2005 22:22:46 -0400


Just a quick ping to see if anyone's given this some thought or if it's too vague and more information is needed.


  Thanks!



On May 13, 2005, at 9:04 PM, SA Dev wrote:

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:
40silentalcove.net


This email sent to email@hidden


_______________________________________________ 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: mmalcolm crawford <email@hidden>
References: 
 >NSManagedObjectContextObjectsDidChangeNotification in loaded nibs (From: SA Dev <email@hidden>)

  • Prev by Date: NSTextView wants to wrap too soon
  • Next by Date: launch safari to open an url
  • Previous by thread: NSManagedObjectContextObjectsDidChangeNotification in loaded nibs
  • Next by thread: Re: NSManagedObjectContextObjectsDidChangeNotification in loaded nibs
  • Index(es):
    • Date
    • Thread