I was only looking at:

<http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSFileManager_Class/Reference/Reference.html#//apple_ref/occ/instm/NSFileManager/contentsAtPath: >

Which fails to mention the note seen in NSFileManager.h. I'll file a docs bug. Thanks for the heads-up.


--
m-s

On 14 Aug, 2008, at 14:55, Clark Cox wrote:

On Thu, Aug 14, 2008 at 11:38 AM, Michael Watson <mikey- [EMAIL PROTECTED]> wrote:
Don't forget that many of Apple's own methods return nil on failure and
don't implement an NSError reference mechanism. NSFileManager's
-contentsAtPath: method returns either an NSData object on success or nil on
failure.

Which is why the comments on that method recommend using +[NSData
dataWithContentsOfFile:options:error:] instead.

--
Clark S. Cox III
[EMAIL PROTECTED]

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to