• 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: object = [[Class alloc] init]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Optimizing NSMutableDictionary Speed
  • Next by Date: Problems with making my app scriptable
  • Previous by thread: Re: object = [[Class alloc] init]
  • Next by thread: Re: design question: OpenGL and cocoa (Thanks Everyone)
  • Index(es):
    • Date
    • Thread