• 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
Re: NSDocument Save As to Windows share is failing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDocument Save As to Windows share is failing


  • Subject: Re: NSDocument Save As to Windows share is failing
  • From: "Adam R. Maxwell" <email@hidden>
  • Date: Wed, 23 Jul 2008 20:33:44 -0700


On Jul 23, 2008, at 8:03 PM, Doug Knowles wrote:

- When Save As... is selected from the menu, our implementation
of writeToURL:ofType:error: is being called with an URL specifying a
location in a hidden temporary folder in the directory (in a shared
directory on a Windows machine) targeted by the user. We understand this to
be part of the normal behavior of NSDocument, ensuring that the write
completes successfully before putting the file in it's real destination. OK
so far.


- Stepping through this in the debugger, we can confirm that the file is
properly written to its destination in the temporary


- After we successfully write the file, an alert is displayed that reports
that the document could not be saved. It appears that NSDocument is failing
to move the file to its proper location and reporting it as an error.

Is anything logged to the console when it fails to save? If you're on Leopard, FSPathReplaceObject is/was buggy, and there various cases where it fails, at least with NSSaveOperation:


http://www.cocoabuilder.com/search/archive/cocoa?words=FSPathReplaceObject

I reimplemented -[NSDocument writeSafelyToURL:ofType:forSaveOperation:error:] to work around the problems we had saving to AFP volumes.

--
Adam

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

References: 
 >NSDocument Save As to Windows share is failing (From: "Doug Knowles" <email@hidden>)

  • Prev by Date: Re: NSDocument Save As to Windows share is failing
  • Next by Date: NSTextView displaying a square instead of carriage return
  • Previous by thread: Re: NSDocument Save As to Windows share is failing
  • Next by thread: NSTextView displaying a square instead of carriage return
  • Index(es):
    • Date
    • Thread