<!--
{
  "availability" : [
    "macOS: 10.10.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSApplicationDelegate/applicationDidFinishLaunching(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSApplicationDelegate(im)applicationDidFinishLaunching:"
  },
  "title" : "applicationDidFinishLaunching(_:)"
}
-->

# applicationDidFinishLaunching(_:)

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

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

## Parameters

`notification`

A notification named [`didFinishLaunchingNotification`](/documentation/AppKit/NSApplication/didFinishLaunchingNotification). Calling the <doc://com.apple.documentation/documentation/Foundation/NSNotification/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:)`](/documentation/AppKit/NSApplicationDelegate/application(_:openFile:)) method is called before this method. If you want to perform initialization before any files are opened, implement the [`applicationWillFinishLaunching(_:)`](/documentation/AppKit/NSApplicationDelegate/applicationWillFinishLaunching(_:)) method in your delegate, which is called before [`application(_:openFile:)`](/documentation/AppKit/NSApplicationDelegate/application(_:openFile:)).)

## See Also

[`finishLaunching()`](/documentation/AppKit/NSApplication/finishLaunching())

Activates the app, opens any files specified by the `NSOpen` user default, and unhighlights the app’s icon.

[`application(_:openFile:)`](/documentation/AppKit/NSApplicationDelegate/application(_:openFile:))

Returns a Boolean value that indicates if the app opens the specified file.

[`applicationDidBecomeActive(_:)`](/documentation/AppKit/NSApplicationDelegate/applicationDidBecomeActive(_:))

Tells the delegate that the app is now active.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)