Re: type of errorString argument for propertyListFromData
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.