• 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
Core Data / Bindings problem: context not notified of add: ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Core Data / Bindings problem: context not notified of add: ?


  • Subject: Core Data / Bindings problem: context not notified of add: ?
  • From: Alain Schartz <email@hidden>
  • Date: Wed, 18 Jun 2008 03:31:59 -0700

Hello list.

I need help with a problem I suspect being a Core Data / Bindings hickup :

My model consists of an abstract entity A and an entity B, with A being B's parent. Each entity is managed by it's own NSArrayController (mode set to Entity and correctly bound to the context), and each NSArrayController is bound to a NSTableView to show me what is going on.

Now When I create a B object (using it's NSArrayController's add: function), it shows up correctly in the according table view but *sometimes* - impossible to say exactly when or how often - the corresponding A object does NOT show up. It does so ONLY when I move the mouse in either one of the views. How strange is that!

I created an observer for the managedObjectContext to see what is going on, and this one too is NOT being fired after the add: UNLESS the mouse enters one of the aforementioned views.

I tried to processPendingChanges in all kinds of places in my code, to no avail. I tried to programatically change the selection of the array controllers after each add:, to no avail.

Google doesn't seem to be my friend on this one, any ideas what I am missing ?

Thanks !
Alain
_______________________________________________

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: Core Data / Bindings problem: context not notified of add: ?
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: [MODERATOR] Re: Two basic questions regarding UITableViewController and ObjC-2.0
  • Next by Date: Re: unexpected nil outlet
  • Previous by thread: Re: Binding the enabled property of a NSMatrix instance to wether or not a multiple selection on a array controller is made.
  • Next by thread: Re: Core Data / Bindings problem: context not notified of add: ?
  • Index(es):
    • Date
    • Thread