Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What are double asterisks for?



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.

References: 
 >What are double asterisks for? (From: Ian Gillespie <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.