• 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: NSFileManager's errors in 10.5, where are they documented?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSFileManager's errors in 10.5, where are they documented?


  • Subject: Re: NSFileManager's errors in 10.5, where are they documented?
  • From: Ali Ozer <email@hidden>
  • Date: Mon, 26 May 2008 12:15:54 -0700

In general Cocoa classes, including NSFileManager, return errors just in the domain NSCocoaErrorDomain. So all the possible errors should be listed in FoundationErrors.h.

However, there may of course be underlying errors; these are often in the POSIX domain. Note that you can never count on the presence of underlying errors, and they may change between releases.

Ali



On May 26, 2008, at 11:04 , Jens Alfke wrote:


On 26 May '08, at 10:24 AM, Jonathan Dann wrote:

I can't find the documentation about which errors can occurr. Do these docs exist and if not, other than messing with permissions and trying to force common file handling errors, what error codes should I test for?

NSFileManager is probably going to return errors in NSPOSIXErrorDomain, since it mostly makes Unix system calls. Those are defined in <sys/errno.h>.


Some methods might use CarbonCore FileManager calls, which would return errors in NSOSStatusErrorDomain. Those are defined in <MacErrors.h>.

—Jens_______________________________________________
_______________________________________________

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: NSFileManager's errors in 10.5, where are they documented?
      • From: Jonathan Dann <email@hidden>
References: 
 >NSFileManager's errors in 10.5, where are they documented? (From: Jonathan Dann <email@hidden>)
 >Re: NSFileManager's errors in 10.5, where are they documented? (From: Jens Alfke <email@hidden>)

  • Prev by Date: how to get a double from an NSString
  • Next by Date: Re: how to get a double from an NSString
  • Previous by thread: Re: NSFileManager's errors in 10.5, where are they documented?
  • Next by thread: Re: NSFileManager's errors in 10.5, where are they documented?
  • Index(es):
    • Date
    • Thread