Re: When does AppDelegate:applicationDidFinishLaunching get called?
Dave
Hi,
Ahhh, you mean, awakeFromNib in the AppDelegate not the window/view controller. I think I was trying to avoid tying the initialisation to a NIB (in case I ever created it programmatically), but I guess in the case of the NSApplication object it will always be from a NIB so it’s safe.
Thanks a lot
Dave
toggle quoted message
Show quoted text
Ahhh, you mean, awakeFromNib in the AppDelegate not the window/view controller. I think I was trying to avoid tying the initialisation to a NIB (in case I ever created it programmatically), but I guess in the case of the NSApplication object it will always be from a NIB so it’s safe.
Thanks a lot
Dave
On 15 Jan 2020, at 13:49, Sandor Szatmari <admin.szatmari.net@...> wrote:
I see different behaviour. Here’s a test app. No matter what I do, -awakeFromNib is always called first. I tried it both in the AppDelegate, and in the ViewController subclass.
Cheers,
SandorOn Jan 15, 2020, at 05:51, Dave <dave@...> wrote:
Hi,
A little more on this.
If I uncheck “Is Initial Controller”, then applicationDidFinishLaunching gets calls as expected.
So I put the code back to instantiate it manually and all works as expected.
All the Best
Dave
<tester.zip>