I'm trying to implement my own run() method of the NSApplication
NSApplication class has isRunning readonly property:
var isRunning: Bool { get }
This property should be true when run is called.
Apple documentation says:
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.
How can I modify this readonly property and set it to true?