NSTableView, NSArrayController, NSManagedObjectContext
NSTableView, NSArrayController, NSManagedObjectContext
- Subject: NSTableView, NSArrayController, NSManagedObjectContext
- From: "Ture PĂ„lsson" <email@hidden>
- Date: Tue, 1 Jan 2008 13:25:08 +0100
It feels like this has to be an FAQ, but I still can't figure it out...
I have a one-column NSTableView, with the 'value' binding of the
column bound to arrangedObjects.someProperty in an NSArrayController.
The NSArrayController is in "entity" mode and with its
managedObjectContext binding bound to an NSManagedObjectContext. If I
add objects to this MOC, they pop up neatly in the NSTableView. So
far, so good.
Then I have another NSManagedObjectContext, with the same core data
stack beneath it. When I add objects to this MOC (on another thread),
the do _not_ pop up in the NSTableView until I restart my application.
What exactly do I need to do get these objects into the MOC bound to
the table view, so that the table view updates correctly?
-- Ture
_______________________________________________
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