Re: [Newbie] Uninitialized outlets?
Re: [Newbie] Uninitialized outlets?
- Subject: Re: [Newbie] Uninitialized outlets?
- From: Richard Schreyer <email@hidden>
- Date: Wed, 5 Sep 2001 20:54:08 -0700
When are you expecting the outlets to be connected? Even if both your
class and the objects it was connected to were instantiated in IB, those
connections will not have been made before your class's init method is
called. In any class that is instantiated by IB, the method
-(void)awakeFromNib will be called after all the outlets have been
connected.
If this isn't the case, perhaps you could provide a bit of sample code?
Richard Schreyer
On Wednesday, September 5, 2001, at 08:04 PM, Brian Hook wrote:
I'm trying to get my first real Cocoa app going, and I'm puzzled as
hell. I'm basically starting with the CurrencyConverter tutorial and,
near as I can tell, I've done everything necessary in order to get
things running. However, my outlets don't seem to be connected at
startup. I was under the impression that this was magically handled
once I specified the outlets via ctrl-drag in IB. I've done all that,
looked at the connection info, and it seems fine and dandy. However if
I step into my code, I find that I'm not getting results because my
outlets simply aren't connected (they're "0x0").
Any ideas what this must be? It has to be something simple, I imagine,
but I can't find any info on this.