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

NSDocument called FSPathReplaceObject() and -39 was returned


  • Subject: NSDocument called FSPathReplaceObject() and -39 was returned
  • From: Sanford Selznick <email@hidden>
  • Date: Thu, 29 Nov 2007 17:46:31 -0700

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 cannot reproduce this myself.

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

The users experiencing problems have fixed their permissions and rebooted multiple times. If they do a Save As..., the users never have this problem again with the new file, but continue to have the problem with the old file **in the same directory**.

The files are never larger than a few hundred K, and are written upon request in my NSDocument subclass by [myNSData writeToFile: atomically:YES], which returns YES.

Any ideas on why FSPathReplaceObject is returning -39 (eofErr), but only on some systems? And only for a specific file?

  My software is built against the 10.3.9 SDK.

Thank you,
  Sanford
_______________________________________________

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


  • Follow-Ups:
    • Re: NSDocument called FSPathReplaceObject() and -39 was returned
      • From: Alastair Houghton <email@hidden>
  • Prev by Date: image conversion, a better way to CGImageRef
  • Next by Date: Toolbar items fail to appear on Tiger
  • Previous by thread: image conversion, a better way to CGImageRef
  • Next by thread: Re: NSDocument called FSPathReplaceObject() and -39 was returned
  • Index(es):
    • Date
    • Thread