Re: NSPersistentDocument No Support "Save To" ("Save As"?)
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