• 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 called FSPathReplaceObject() and -39 was returned
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDocument called FSPathReplaceObject() and -39 was returned


  • Subject: Re: NSDocument called FSPathReplaceObject() and -39 was returned
  • From: Alastair Houghton <email@hidden>
  • Date: Fri, 30 Nov 2007 11:45:51 +0000

On 30 Nov 2007, at 00:46, Sanford Selznick wrote:

Hello,

I have an NSDocument based application. Starting in 10.5.1 users have been been reporting that their document changes could not be saved, and that the following has been reported to the Console:

 "NSDocument called FSPathReplaceObject() and -39 was returned."

-39 is eofErr.

I've been seeing a similar problem on 10.5 with a network home directory. The error code is different (it returns -1303, diffVolErr), but it leads me to the conclusion that NSDocument's default file save code isn't as robust as it could be right now. I filed a bug report about the diffVolErr issue <rdar://5602033>, so if you file a bug report too it would be worth mentioning that one I think.


In the case of eofErr, I'd ask your users to check their volumes using Disk Utility. It may be possible to get unexpected EOF indications in situations where the file's stated length and extent data don't match up.

 I cannot reproduce this myself.

I've seen in the debugger that FSPathReplaceObject is called from [NSDocument saveDocument:]. My code does not directly call FSPathReplaceObject.

No, it's NSDocument that uses it, to implement "safe saves". You should be able to avoid using the default implementation by overriding the right methods on NSDocument.


Kind regards,

Alastair.

--
http://alastairs-place.net


_______________________________________________

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 called FSPathReplaceObject() and -39 was returned (From: Sanford Selznick <email@hidden>)

  • Prev by Date: Re: Linked frameworks
  • Next by Date: RE: Linked frameworks
  • Previous by thread: NSDocument called FSPathReplaceObject() and -39 was returned
  • Next by thread: Toolbar items fail to appear on Tiger
  • Index(es):
    • Date
    • Thread