Instance Method


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


optional func applicationDidFinishLaunching(_ notification: Notification)



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


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.

NSApplicationDidFinishLaunching User Info Keys

The following constants define the keys that can be present in the didFinishLaunchingNotification.