Re: awakeFromNib and sheets
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