• 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: type of errorString argument for propertyListFromData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: type of errorString argument for propertyListFromData


  • Subject: Re: type of errorString argument for propertyListFromData
  • From: j o a r <email@hidden>
  • Date: Tue, 16 Mar 2004 08:54:00 +0100

No, this is following the common C idiom where you use a parameter to
return a value from a method / function call. You use it to get an
error string back from the method, something approximately like this:

NSString *theErrorStr;
id plist = [NSPropertyList propertyListFromData: theData
mutabilityOption: theOpt format: theFormat errorDescription:
&theErrorStr];
if (plist == nil)
{
NSLog(@"Error: %@", theErrorStr);
}

j o a r

On 2004-03-16, at 08.25, John Karp wrote:

> In Foundation/NSPropertyList.h,
>
> + (id)propertyListFromData:(NSData *)data
> mutabilityOption:(NSPropertyListMutabilityOptions)opt
> format:(NSPropertyListFormat *)format errorDescription:(NSString
> **)errorString;
>
> Is the double star (**) for errorString a typo?

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >type of errorString argument for propertyListFromData (From: "John Karp" <email@hidden>)

  • Prev by Date: Re: type of errorString argument for propertyListFromData
  • Next by Date: Quitting single-window application on close
  • Previous by thread: Re: type of errorString argument for propertyListFromData
  • Next by thread: Re: type of errorString argument for propertyListFromData
  • Index(es):
    • Date
    • Thread