Re: Quick question! About init...
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.