• 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: [Newbie] Uninitialized outlets?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: [Newbie] Uninitialized outlets?
      • From: brian hook <email@hidden>
References: 
 >[Newbie] Uninitialized outlets? (From: Brian Hook <email@hidden>)

  • Prev by Date: [Newbie] Uninitialized outlets?
  • Next by Date: Re: [Newbie] Uninitialized outlets?
  • Previous by thread: [Newbie] Uninitialized outlets?
  • Next by thread: Re: [Newbie] Uninitialized outlets?
  • Index(es):
    • Date
    • Thread