• 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: Equivalent of NSManagedObjectContextWillSaveNotification in 10.5?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Equivalent of NSManagedObjectContextWillSaveNotification in 10.5?


  • Subject: Re: Equivalent of NSManagedObjectContextWillSaveNotification in 10.5?
  • From: Jerry Krinock <email@hidden>
  • Date: Wed, 28 Jul 2010 23:30:14 -0700

On 2010 Jul 28, at 20:07, Gideon King wrote:

> Thanks Jerry, it is part of an NSPersistentDocument subclass. I get a bit confused about which save method(s) I would have to implement in my subclass, as there seem to be a number of save... methods and a number of writeTo... methods. The potential candidates seem to be...

No need to guess!  Paste "Message Flow in the Document Architecture" into your Xcode documentation viewer.  Up near the top hit should be a page with that title in "Document-Based Applications Overview", which is the most usefully lucid page of documentation ever produced by Apple.  It has some wonderful diagrams including one for "Saving a Document".

Unfortunately it doesn't show the topmost stack calls for Core Data (I've filed a bug), but you can see where it leaves off, knowing that NSPersistentDocument overrides writeToURL:ofType:forSaveOperation:originalContentsURL:error:.  Anything under that works just like it says.


_______________________________________________

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

References: 
 >Equivalent of NSManagedObjectContextWillSaveNotification in 10.5? (From: Gideon King <email@hidden>)
 >Re: Equivalent of NSManagedObjectContextWillSaveNotification in 10.5? (From: Jerry Krinock <email@hidden>)
 >Re: Equivalent of NSManagedObjectContextWillSaveNotification in 10.5? (From: Gideon King <email@hidden>)

  • Prev by Date: PMSessionBeginPage
  • Next by Date: Re: PMSessionBeginPage
  • Previous by thread: Re: Equivalent of NSManagedObjectContextWillSaveNotification in 10.5?
  • Next by thread: Intercepting deletion of NSManagedObjects or how to handle deletion in non-explicit relationships?
  • Index(es):
    • Date
    • Thread