-[NSDocument writeToURL:...:error:], NSError and documents being renamed
-[NSDocument writeToURL:...:error:], NSError and documents being renamed
- Subject: -[NSDocument writeToURL:...:error:], NSError and documents being renamed
- From: Mark Alldritt <email@hidden>
- Date: Wed, 21 Feb 2007 08:13:26 -0800
- Thread-topic: -[NSDocument writeToURL:...:error:], NSError and documents being renamed
Hi All,
I implement NSDocument's writeToURL:...:error: method in my code. If I
return NO with an NSError instance, NSDocument reports the error, but also
renames my document (adding a ~ to the end of the name). I expected
NSDocument to simple report the error, and leave the document unsaved.
How do I prevent NSDocument from renaming my document in this instance?
Cheers
-Mark
------------------------------------------------------------------------
Mark Alldritt Late Night Software Ltd.
Phone: 250-380-1725 Script Debugger 4.0 - AppleScript IDE
WEB: http://www.latenightsw.com/ FaceSpan 4.3 - AppleScript RAD
Affrus 1.0 - Perl Debugging
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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