Inputhook for Cocoa (NSApp)
(context)
| 125 | |
| 126 | |
| 127 | def inputhook(context): |
| 128 | """Inputhook for Cocoa (NSApp)""" |
| 129 | NSApp = _NSApp() |
| 130 | _stop_on_read(context.fileno()) |
| 131 | msg(NSApp, n('run')) |
| 132 | if not _triggered.is_set(): |
| 133 | # app closed without firing callback, |
| 134 | # probably due to last window being closed. |
| 135 | # Run the loop manually in this case, |
| 136 | # since there may be events still to process (#9734) |
| 137 | CoreFoundation.CFRunLoopRun() |
nothing calls this directly
no test coverage detected