• 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: Why would IBOutlet NSPanel *aWindow be nil?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why would IBOutlet NSPanel *aWindow be nil?


  • Subject: Re: Why would IBOutlet NSPanel *aWindow be nil?
  • From: Jonathon Mah <email@hidden>
  • Date: Sat, 9 Apr 2005 22:42:54 +0930

On 9 Apr 2005, at 22:22, Dale Gillard wrote:

But... when I run the project the new panel does not appear when I send it a makeKeyAndOrderFront: message. I've run the app in the debugger and the outlet is nil. Is there something I'm doing wrong?

This may be a silly question, but when are you sending that message? You have to send it in -awakeFromNib (which is called after the entire nib has loaded, and all outlets, etc. have been connected) as opposed to in -init (which is called while the nib is being set up).



Jonathon Mah email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Why would IBOutlet NSPanel *aWindow be nil?
      • From: Dale Gillard <email@hidden>
References: 
 >Why would IBOutlet NSPanel *aWindow be nil? (From: Dale Gillard <email@hidden>)

  • Prev by Date: Why would IBOutlet NSPanel *aWindow be nil?
  • Next by Date: Re: Why would IBOutlet NSPanel *aWindow be nil?
  • Previous by thread: Why would IBOutlet NSPanel *aWindow be nil?
  • Next by thread: Re: Why would IBOutlet NSPanel *aWindow be nil?
  • Index(es):
    • Date
    • Thread