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: chaitanya pandit <email@hidden>
- Date: Thu, 9 Oct 2008 01:18:29 +0530
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
Chaitanya
On 08-Oct-08, at 5:50 PM, Jerry Krinock wrote:
Documentation [1] states that "NSPersistentDocument does not support
Save To operations".
First of all, I presume that "Save To" means "Save As...", although
I cannot this presumption. Could someone please confirm that "Save
To" == "Save As..." ?
If so, I'd like my app to have a "Save As...", so this is
disappointing. But I can appreciate how such a thing would be
difficult to do, and if Apple couldn't do it, obviously I shouldn't
even try. But if anyone has attempted to crack this nut, I'd like
to hear about it.
Jerry Krinock
[1] http://developer.apple.com/documentation/Cocoa/Conceptual/NSPersistentDocumentTutorial/01_Task/chapter_2_section_4.html
_______________________________________________
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
_______________________________________________
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