---
title: isRunning
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsapplication/isrunning
---

# isRunning

A Boolean value indicating whether the main event loop is running.

## Declaration

```swift
var isRunning: Bool { get }
```

## Discussion

Discussion The value of this property is true when the main event loop is running or false when it’s not. Calling the stop(_:) method sets the value to false.

## See Also

### Related Documentation

- [terminate(_:)](appkit/nsapplication/terminate(_:).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)
- [run()](appkit/nsapplication/run().md)
- [finishLaunching()](appkit/nsapplication/finishlaunching().md)
- [stop(_:)](appkit/nsapplication/stop(_:).md)
- [sendEvent(_:)](appkit/nsapplication/sendevent(_:).md)
- [postEvent(_:atStart:)](appkit/nsapplication/postevent(_:atstart:).md)
