Re: object = [[Class alloc] init]
Re: object = [[Class alloc] init]
- Subject: Re: object = [[Class alloc] init]
- From: Esteban Uribe <email@hidden>
- Date: Fri, 11 Apr 2003 13:16:33 -0700
Hi,
On Friday, April 11, 2003, at 10:45AM, David Blanton <email@hidden> wrote:
>
Is this good Cocoa coding form:
>
>
object = [[Class alloc] init];
>
if(!object) // handle error
>
else
>
// do the next thing
IMHO, I think it is :)
I do coding of exactly that form all the time.
Of course that particular code there wont actually run i think.
You'll need to replace Class with NSObject or a subclass of NSObject
-Esteban
_______________________________________________
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.