After awakeFromNib and beyond applicationDidFinishLaunching (but just a little)
After awakeFromNib and beyond applicationDidFinishLaunching (but just a little)
- Subject: After awakeFromNib and beyond applicationDidFinishLaunching (but just a little)
- From: Sam Goldman <email@hidden>
- Date: Sun, 06 Jan 2002 01:45:06 -0800
Hello,
So far I have searched the FM (to the best of my ability, mind you I don't
know what I am looking for or where to find it), perused the archives, and
even check the HI Guidelines to make sure what I was doing was a no-no.
An on to the problem...
My app should display a sheet when the application first opens, the problem
is that I can't seem to find a notification that will let me do this at the
right time.
The first thing I did was to try awakeFromNib (not really thinking about it,
though) and then I moved right on to applicationDidFinishLaunching. This at
least shows the sheet as part of the window, but (here comes the pet-peeve)
the window that the sheet is coming off of is not in front.
I tried passing orderFront: to the main window and then showing the sheet,
but the window doesn't want to adhere to my command.
If it matters, the sheet displaying is done through another function because
the same code needs to be available at other times.
Now for the question...
Is there a method that will be invoked after the main/key window becomes
active? (in other words, right AFTER applicationDidFinishLaunching)
I don't want to use that windows didBecomeActive delegate method because a)
I would have yet another delegate hooked up to my controller and more
importantly b) it would occur whenever the window became focused.
Thanks,
Sam