• 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
Notification when NSPersistentDocument done loading model
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Notification when NSPersistentDocument done loading model


  • Subject: Notification when NSPersistentDocument done loading model
  • From: PHILIP GRANDINETTI <email@hidden>
  • Date: Mon, 22 Dec 2008 18:58:15 -0500
  • Priority: normal

I'm using a Core Data model and letting NSPersistentDocument manage the task of finding and loading the application's model.   My model contains data that I am displaying in a graph (SM2DGraphView)   A problem I'm having is that once the model data is done loading I want to send a refresh message to the graph.     So, I put the refresh message at the end of the document's  initWithType:error:  but this seems to be too early in the process and when the refresh asks the NSArrayController bound to the data, it says it is empty, that is, canRemove returns false.

I tried getting a notification with NSManagedObjectContextObjectsDidChangeNotification but this didn't seem to work.   I can post the code in case this should have worked, but first I wanted to ask if there might be a simpler approach?

Thanks,

Philip

_______________________________________________

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: Notification when NSPersistentDocument done loading model
      • From: Richard Ashwell <email@hidden>
  • Prev by Date: iTunes Plug-in
  • Next by Date: Re: NSSpeechSynthesizer rate
  • Previous by thread: Re: iTunes Plug-in
  • Next by thread: Re: Notification when NSPersistentDocument done loading model
  • Index(es):
    • Date
    • Thread