---
title: "applicationDidFinishLaunching(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsapplicationdelegate/applicationdidfinishlaunching(_:)"
---

# applicationDidFinishLaunching(_:)

Tells the delegate that the app’s initialization is complete but it hasn’t received its first event.

## Declaration

```swift
@MainActor optional func applicationDidFinishLaunching(_ notification: Notification)
```

## Parameters

- `notification`: A notification named doc://com.apple.appkit/documentation/AppKit/NSApplication/didFinishLaunchingNotification. Calling the doc://com.apple.documentation/documentation/Foundation/NSNotification/object method of this notification returns the NSApplication object itself.

## Discussion

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

### Related Documentation

- [finishLaunching()](appkit/nsapplication/finishlaunching().md)
- [application(_:openFile:)](appkit/nsapplicationdelegate/application(_:openfile:).md)
- [applicationDidBecomeActive(_:)](appkit/nsapplicationdelegate/applicationdidbecomeactive(_:).md)

### Launching Applications

- [applicationWillFinishLaunching(_:)](appkit/nsapplicationdelegate/applicationwillfinishlaunching(_:).md)
- [NSApplicationDidFinishLaunching User Info Keys](appkit/nsapplicationdidfinishlaunching-user-info-keys.md)
