Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Newbie] Uninitialized outlets?



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.


References: 
 >[Newbie] Uninitialized outlets? (From: Brian Hook <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.