• 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: Initializing NSError **, again Re: CoreData Migration Problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Initializing NSError **, again Re: CoreData Migration Problems


  • Subject: Re: Initializing NSError **, again Re: CoreData Migration Problems
  • From: Quincey Morris <email@hidden>
  • Date: Tue, 8 Feb 2011 15:33:12 -0800

On Feb 8, 2011, at 15:07, Fritz Anderson wrote:

> The documentation for AVAudioPlayer's initWithContentsOfURL:error: and initWithData:error: methods, however, call for "the address of a nil-initialized NSError object," whatever that is. I think they mean a nil-initialized pointer to an NSError pointer. There's similar language for AVAudioRecorder.
>
> I can't imagine this is correct. It is against the semantics for NSError** returns everywhere else in Cocoa. What would the method do with the nil, or with a non-nil value, for that matter? I'd always assumed that the only thing that happens to the input value of *error is that it is blindly overwritten.

You're right -- it's very strange, and the language as it stands is nonsensical, regardless of what the API intends to be passed.


_______________________________________________

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

References: 
 >CoreData Migration Problems (From: Gordon Apple <email@hidden>)
 >Re: CoreData Migration Problems (From: Quincey Morris <email@hidden>)
 >Initializing NSError **, again Re: CoreData Migration Problems (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: Initializing NSError **, again Re: CoreData Migration Problems
  • Next by Date: Right views for a N items, each of which can have M items within it?
  • Previous by thread: Re: Initializing NSError **, again Re: CoreData Migration Problems
  • Next by thread: Re: CoreData Migration Problems
  • Index(es):
    • Date
    • Thread