Re: NSDocument and the dreaded "The location of the document XXX cannot be determined"
Re: NSDocument and the dreaded "The location of the document XXX cannot be determined"
- Subject: Re: NSDocument and the dreaded "The location of the document XXX cannot be determined"
- From: Jerry Krinock <email@hidden>
- Date: Fri, 2 Apr 2010 07:32:57 -0700
On 2010 Apr 01, at 13:50, Martin Wierschin wrote:
> I should say that I've overridden my NSDocument's save methods
Indeed, you're playing with a highly crafted system there. After adding a "Save As Move" command to an application, I was getting a different but related warning, something like "Document has been moved, do you really want to save it to a new location?" The solution was to sprinkle in an extra invocation of saveToURL:ofType:forSaveOperation:error: immediately after setFileURL:.
> Any help on this would be much appreciated.
If you've not done so already, pull up the "Document-Based Applications Overview" and read "Message Flow in the Document Architecture". It might help. You could maybe set some breakpoints.
If you figure it out, please post the answer for the list archives. I may need it someday :)
_______________________________________________
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