Re: Is it * or **?
Re: Is it * or **?
- Subject: Re: Is it * or **?
- From: Graeme Hiebert <email@hidden>
- Date: Thu, 7 Mar 2002 08:31:20 -0800
On Thursday, March 7, 2002, at 08:20 AM, Jonathan E. Jackel wrote:
Why does Cocoa require a pointer to a pointer to NSDictionary here:
- (id)initWithHTML:(NSData *)data baseURL:(NSURL *)anURL
documentAttributes:(NSDictionary **)docAttributes
But only a single pointer here:
- (NSData *)RTFFromRange:(NSRange)aRange
documentAttributes:(NSDictionary
*)docAttributes
In the first case it is passing you back a dictionary, by setting your
pointer to point to it. In the second case, it is simply accessing a
dictionary you give it, and is not changing your pointer's actual value.
-g
_______________________________________________
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: | |
| >Is it * or **? (From: "Jonathan E. Jackel" <email@hidden>) |