• 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: Re: newbie question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: newbie question


  • Subject: Re: Re: newbie question
  • From: "Shawn Erickson" <email@hidden>
  • Date: Fri, 10 Nov 2006 14:38:23 -0800

On 11/10/06, Stephen Deken <email@hidden> wrote:

Saying this:

  NSMutableDictionary *m = [NSMutableDictionary dictionaryWithCapacity:1];

is equivalent to this:

  NSMutableDictionary *m = [NSMutableDictionary alloc];
  [m initWithCapacity:1];
  [m autorelease];

...logically it is closer to the following...

NSMutableDictionary *m = [NSMutableDictionary alloc];
m = [m initWithCapacity:1];
m = [m autorelease];

- Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >newbie question (From: maximilian marcoll <email@hidden>)
 >Re: newbie question (From: "Stephen Deken" <email@hidden>)

  • Prev by Date: Re: Re: Re: [moderator] Re: Authorization code fails in Leopard
  • Next by Date: Re: Rotation problem
  • Previous by thread: Re: newbie question
  • Next by thread: Re: newbie question
  • Index(es):
    • Date
    • Thread