• 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: awakeFromNib and sheets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: awakeFromNib and sheets


  • Subject: Re: awakeFromNib and sheets
  • From: Gary C Martin <email@hidden>
  • Date: Sat, 25 Aug 2001 14:25:39 +0100

On Saturday, August 25, 2001, at 10:55 am, Finlay Dobbie wrote:

Yes, exactly. You use -applicationDidFinishLaunching to do anything *AFTER* the UI has been displayed, and -awakeFromNib to do anything *BEFORE* the UI has been displayed (but after the objects have been unarchived from the nib and you can therefore modify them).

Yes, think I'm there now. I've placed my error checking routine and display updating code back in my awakeFromNib. On an error I set an instance variable flag to indicate an sheet alert is needed. Then I have IB's 'File Owner' delegate to my control object to catch the applicationDidFinishLaunching message, at which point I test my flag and if needed NSBeginAlertSheet.

Regards,
Gary


  • Follow-Ups:
    • MoonDock (Was: awakeFromNib and sheets)
      • From: Gary C Martin <email@hidden>
References: 
 >Re: awakeFromNib and sheets (From: Finlay Dobbie <email@hidden>)

  • Prev by Date: Re: awakeFromNib and sheets
  • Next by Date: Re: Docs, questions and stuff
  • Previous by thread: Re: awakeFromNib and sheets
  • Next by thread: MoonDock (Was: awakeFromNib and sheets)
  • Index(es):
    • Date
    • Thread