Re: What are double asterisks for?
Re: What are double asterisks for?
- Subject: Re: What are double asterisks for?
- From: Greg Hulands <email@hidden>
- Date: Mon, 30 Dec 2002 07:10:52 +1000
It is a pointer to a pointer to an NSDictionary.
eg
NSDictionary *myDict = [NSDictionary dictionaryWithObjectsAndKeys:some,
attributes, nil];
id rtf = [NSSomeObject initWithRTFDFileWrapper:someWrapper
documentAttributes:&myDict];
Greg
On Monday, December 30, 2002, at 06:57 AM, Ian Gillespie wrote:
For example:
- (id)initWithRTFDFileWrapper:(NSFileWrapper *)wrapper
documentAttributes:(NSDictionary **)docAttributes
Notice ** after the NSDictionary. I tried using this method and
passing a dictionary as an argument and I got a compile error:
Invoice.m:140: warning: passing arg 2 of
`initWithRTF:documentAttributes:' from incompatible pointer type
Can someone help please? Thanks.
_______________________________________________
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.
_______________________________________________
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.