• 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: NSPersistentDocument No Support "Save To" ("Save As"?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPersistentDocument No Support "Save To" ("Save As"?)


  • Subject: Re: NSPersistentDocument No Support "Save To" ("Save As"?)
  • From: Mike Abdullah <email@hidden>
  • Date: Wed, 8 Oct 2008 22:22:16 +0100


On 8 Oct 2008, at 20:48, chaitanya pandit wrote:

Hi,
I have implemented Save As... in one of my core data app.
What i do is, in the "saveToURL: ofType: forSaveOperation: error:" method, if the save operation is NSSaveAsOperation, i migrate the persistent store to a new location given by the absoluteURL and also set the document's URL to the new one and call super's saveToURL...
Works for me

But why? NSPersistentDocument provides this automatically for you. It's only Save To that's not supported. Or is there a good reason to provide a custom implementation that I'm missing?
_______________________________________________


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: NSPersistentDocument No Support "Save To" ("Save As"?)
      • From: chaitanya pandit <email@hidden>
References: 
 >NSPersistentDocument No Support "Save To" ("Save As"?) (From: Jerry Krinock <email@hidden>)
 >Re: NSPersistentDocument No Support "Save To" ("Save As"?) (From: chaitanya pandit <email@hidden>)

  • Prev by Date: [Job] Cocoa developer at Skype
  • Next by Date: NSTextView/NSAttributedString supported file types
  • Previous by thread: Re: NSPersistentDocument No Support "Save To" ("Save As"?)
  • Next by thread: Re: NSPersistentDocument No Support "Save To" ("Save As"?)
  • Index(es):
    • Date
    • Thread