On Jan 14, 2020, at 10:59 AM, Dave <dave@...> wrote:
Mac Project.
MacOS 10.14.6
Hi All,
I have some code that needs to be initialized before any Window/View are displayed. The App was working ok, but it looks like something has changed?
I have a call to initialise AppDelegate:applicationDidFinishLaunching BUT, the Initial Window/View Controller viewDidAppear method is being called before applicationDidFinishLaunching. Is this correct behaviour and if so where is the best place to initialise things?
Is this a document-based app or a single-window type app?
In my single-window apps, AppDelegate:applicationDidFinishLaunching is called first, and instantiates and displays the main window, so the window’s init and awakeFromNib methods are called before AppDelegate:applicationDidFinishLaunching ends.
In my document-based app, the DocumentWIndowController:windowDidLoad (and presumably viewDidAppear) are called before the AppDelegate:applicationDidFinishLaunching.
Jim Crate