Excellent! Glad that was the trick!
toggle quoted messageShow quoted text
On Jan 15, 2020, at 08:13, Dave <email@example.com> wrote:
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
On 15 Jan 2020, at 13:49, Sandor Szatmari <firstname.lastname@example.org> 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.
On Jan 15, 2020, at 05:51, Dave <email@example.com> 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