---
title: finishLaunching()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsapplication/finishlaunching()
---

# finishLaunching()

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

## Declaration

```swift
func finishLaunching()
```

## Discussion

Discussion The run() method calls this method before it starts the event loop. When this method begins, it posts an willFinishLaunchingNotification to the default notification center. If you override finishLaunching(), the subclass method should invoke the superclass method.

## See Also

### Related Documentation

- [applicationWillFinishLaunching(_:)](appkit/nsapplicationdelegate/applicationwillfinishlaunching(_:).md)
- [applicationDidFinishLaunching(_:)](appkit/nsapplicationdelegate/applicationdidfinishlaunching(_:).md)

### Managing the event loop

- [nextEvent(matching:until:inMode:dequeue:)](appkit/nsapplication/nextevent(matching:until:inmode:dequeue:).md)
- [discardEvents(matching:before:)](appkit/nsapplication/discardevents(matching:before:).md)
- [currentEvent](appkit/nsapplication/currentevent.md)
- [isRunning](appkit/nsapplication/isrunning.md)
- [run()](appkit/nsapplication/run().md)
- [stop(_:)](appkit/nsapplication/stop(_:).md)
- [sendEvent(_:)](appkit/nsapplication/sendevent(_:).md)
- [postEvent(_:atStart:)](appkit/nsapplication/postevent(_:atstart:).md)
