Re: Core data question
Re: Core data question
- Subject: Re: Core data question
- From: Jim Correia <email@hidden>
- Date: Fri, 23 Mar 2007 14:44:17 -0400
On Mar 22, 2007, at 8:44 PM, Walt Horat wrote:
I have an CD app. that launches a several long running threads to
load data into its model.
I create the NSPersistentStoreCoordinator in my app's primary
controller class, handing it off to the threads who each create
their own NSManagedObjectContext. After the save, I send a
notification back to the controller (using
performSelectorOnMainThread) to have it re-fetch its objects from
the model.
This much seems to work, however...
For debugging purposes, I have a tabbed window with numerous list
views onto the model - 100% bindings, no code involved. It isn't
pretty to look at 80 columns in a table view, but it's immensely
helpful nonetheless. How in the devil to I convince these bound
views to update from the persistent store when the threads save/
notify?
If necessary, you can manually ask your object controller's to fetch.
<http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/Classes/NSObjectController_Class/Reference/
Reference.html#//apple_ref/occ/instm/NSObjectController/fetch:>
Jim
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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