Re: Inconsistent Memory Management Rules
Re: Inconsistent Memory Management Rules
- Subject: Re: Inconsistent Memory Management Rules
- From: Denis Stanton <email@hidden>
- Date: Thu, 17 Apr 2003 09:07:46 +1200
On Wednesday, April 16, 2003, at 05:38 PM, Sherm Pendley wrote:
On Tuesday, April 15, 2003, at 07:24 PM, Denis Stanton wrote:
NSString * string = [[NSString alloc] init]
The above combines declaration and initialization. The declaration by
itself would be:
NSString *string;
Thank you for that. A simple statement, but for me it was one of
those"Ahhhh of course!" moments that mark the path of learning.
I think my code contains a number of spurious initializations, which I
will watch for in future.
Denis
_______________________________________________
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.