Re: Newbie question: instantiate a class in its header file OR in IB

2008-06-25 Thread Jens Alfke
On 25 Jun '08, at 7:01 AM, JArod Wen wrote: So if I have initialization method in the class, I need not to instantiate it explicitly in code, correct? IB will create the instant using the initialization method. Is this correct? You don't need a custom -init method for an object in a nib. I

Re: Newbie question: instantiate a class in its header file OR in IB

2008-06-25 Thread JArod Wen
First of all, thanks for kind reply! Nope. All this does is define a variable - it doesn't allocate an instance. That'd have to happen in +initialize or something. So if I have initialization method in the class, I need not to instantiate it explicitly in code, correct? IB will create the i

Re: Newbie question: instantiate a class in its header file OR in IB

2008-06-24 Thread Jens Alfke
On 24 Jun '08, at 8:34 PM, JArod Wen wrote: I am a cocoa newbie from Java. Recently I found an example code in which the instance of a class is defined in its own class's header file, as following: @interface AppController : NSObject { // Instance variables here } AppController *app

Re: Newbie question: instantiate a class in its header file OR in IB

2008-06-24 Thread Andrew Farmer
On 24 Jun 08, at 20:34, JArod Wen wrote: I am a cocoa newbie from Java. Recently I found an example code in which the instance of a class is defined in its own class's header file, as following: @interface AppController : NSObject { // Instance variables here } App

Newbie question: instantiate a class in its header file OR in IB

2008-06-24 Thread JArod Wen
Hi Gurus, I am a cocoa newbie from Java. Recently I found an example code in which the instance of a class is defined in its own class's header file, as following: @interface AppController : NSObject { // Instance variables here } AppController *appController; A