Instance Method

applicationDidFinishLaunching(_:)

Sent by the default notification center after the application has been launched and initialized but before it has received its first event.

Declaration

optional func applicationDidFinishLaunching(_ notification: Notification)

Parameters

aNotification

A notification named didFinishLaunchingNotification. Calling the object method of this notification returns the NSApplication object itself.

Discussion

Delegates can implement this method to perform further initialization. This method is called after the application’s main run loop has been started but before it has processed any events. If the application was launched by the user opening a file, the delegate’s application(_:openFile:) method is called before this method. If you want to perform initialization before any files are opened, implement the applicationWillFinishLaunching(_:) method in your delegate, which is called before application(_:openFile:).)

See Also

Launching Applications

func applicationWillFinishLaunching(Notification)

Sent by the default notification center immediately before the application object is initialized.