• 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
-[NSDocument writeToURL:...:error:], NSError and documents being renamed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-[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

  • Prev by Date: Re: Accessing programatically to attribute length in run-time
  • Next by Date: Re: Accessing programatically to attribute length in run-time
  • Previous by thread: Re: how to add ssl support in my cocoa application
  • Next by thread: bycopy in and NSDistantObject in return
  • Index(es):
    • Date
    • Thread