Core Data / Bindings problem: context not notified of add: ?
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