• 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: Quick question! About init...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quick question! About init...


  • Subject: Re: Quick question! About init...
  • From: Ryan Dingman <email@hidden>
  • Date: Fri, 2 Aug 2002 16:43:29 -0700

No, they are not equal -- the difference is an autorelease.

playerName[player] = [[[NSString alloc] initWithString:name] autorelease];

is equal to:

playerName[player] = [[NSString stringWithString:name];

HTH,

ryan

On Friday, August 2, 2002, at 04:31 PM, Ernst Persson wrote:

Is:

playerName[player] = [[NSString alloc] initWithString:name];

equal to:

playerName[player] = [[NSString stringWithString:name];

If not, what's the difference?

//ernie
_______________________________________________
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: 
 >Quick question! About init... (From: Ernst Persson <email@hidden>)

  • Prev by Date: Re: Quick question! About init...
  • Next by Date: Odd error with setDataCell:
  • Previous by thread: Re: Quick question! About init...
  • Next by thread: Spellchecker dictionary for OS X
  • Index(es):
    • Date
    • Thread