• 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 FSPathReplaceObject failure
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSDocument FSPathReplaceObject failure


  • Subject: NSDocument FSPathReplaceObject failure
  • From: "Adam R. Maxwell" <email@hidden>
  • Date: Thu, 10 Jan 2008 08:58:46 -0800

One of our users just reported an error saving to an AFP volume (which I can also reproduce).  Console logs "NSDocument called FSPathReplaceObject() and -50 was returned" after writeSafelyToURL:... fails.  TextEdit fails to save the same (plain text) file to an AFP volume, so it's not a bug in our code.

I'm a bit concerned that FSExchangeObjects or exchangedata might have the same problem, so I'd hate to rewrite the whole thing and still have non-functional saving.  I've thought about falling back to something like -[NSFileWrapper writeToFile:atomically:updateFilenames:] if we're running on Leopard and the save fails, but the description of NSDocument's writeSafelyToURL: logic sounds a lot more complicated than that.

There's one other reference to an FSPathReplaceObject failure in the archives, but I was wondering if anyone has suggestions for a workaround.  Oh, this was filed as rdar://problem/5679370 if anyone's interested.

thanks,
adam
_______________________________________________

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

  • Prev by Date: Re: Garbage Collection Problem
  • Next by Date: NSInteger problem
  • Previous by thread: GraphicsImportGetNaturalBounds offset
  • Next by thread: NSInteger problem
  • Index(es):
    • Date
    • Thread