• 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: Core data question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Core data question (From: Walt Horat <email@hidden>)

  • Prev by Date: Core data question
  • Next by Date: using dvd as input source to core video api
  • Previous by thread: Core data question
  • Next by thread: using dvd as input source to core video api
  • Index(es):
    • Date
    • Thread