aleksey.tomin
06/03/2020, 7:40 PMDiscarding message for event 0 because of too many unprocessed messages
How can I process messages from OS?louiscad
06/04/2020, 6:16 AMCFRunLoop()?aleksey.tomin
06/04/2020, 6:58 AMArtyom Degtyarev [JB]
06/04/2020, 10:37 AMNSApplication().run() , you should run loop manually.aleksey.tomin
06/04/2020, 10:42 AMNSApplication().run() I have error message Creating more than one ApplicationArtyom Degtyarev [JB]
06/05/2020, 8:14 AMrun() . Or, maybe CFRunLoop makes more sense here.aleksey.tomin
06/06/2020, 8:27 AMvar app = NSApp
println("existing: $app")
app = app?: NSApplication()
println("active: ${app.active}")
app.run()
Result:
existing: null
active: false
...
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Creating more than one Application'
🤯svyatoslav.scherbina
06/09/2020, 5:56 AMvar app = NSApplication.sharedApplication
println("existing: $app")
app = app?: NSApplication()
println("active: ${app.active}")
app.run()aleksey.tomin
06/09/2020, 6:52 AMNSApplication.sharedApplication isn’t nullable - NSApplication.sharedApplication.run() is OK