Re: NSFileManager's errors in 10.5, where are they documented?
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