• 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: @try @catch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: @try @catch


  • Subject: Re: @try @catch
  • From: "Clark Cox" <email@hidden>
  • Date: Thu, 14 Aug 2008 11:55:12 -0700

On Thu, Aug 14, 2008 at 11:38 AM, Michael Watson <email@hidden> 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@hidden
_______________________________________________

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: @try @catch
      • From: Michael Watson <email@hidden>
References: 
 >@try @catch (From: Georg Seifert <email@hidden>)
 >Re: @try @catch (From: Uli Kusterer <email@hidden>)
 >Re: @try @catch (From: Michael Watson <email@hidden>)

  • Prev by Date: Animation layer conflict w/ IKImageBrowserView
  • Next by Date: Re: Why does Core Data retain an object when one of that object's attributes is changed?
  • Previous by thread: Re: @try @catch
  • Next by thread: Re: @try @catch
  • Index(es):
    • Date
    • Thread