• 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: Is it * or **?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Is it * or **?
  • Next by Date: Re: Is errno thread-safe?
  • Previous by thread: Is it * or **?
  • Next by thread: Is resizing slower that it used to be?
  • Index(es):
    • Date
    • Thread