mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-11-23 12:09:51 +00:00
Add NSModalPanelRunLoopMode and NSEventTrackingRunLoopMode as runloop common modes
This commit is contained in:
parent
255b78624f
commit
a445289f3b
@ -1361,6 +1361,9 @@ int NSApplicationMain(int argc, const char *argv[]) {
|
||||
[[NSUserDefaults standardUserDefaults] setObject:((argc == 1) ? [arguments lastObject] : arguments) forKey:@"NSOpen"];
|
||||
}
|
||||
|
||||
CFRunLoopAddCommonMode(CFRunLoopGetCurrent(), NSModalPanelRunLoopMode);
|
||||
CFRunLoopAddCommonMode(CFRunLoopGetCurrent(), NSEventTrackingRunLoopMode);
|
||||
|
||||
[NSClassFromString(@"Win32RunningCopyPipe") performSelector:@selector(startRunningCopyPipe)];
|
||||
|
||||
if(class==Nil)
|
||||
|
Loading…
Reference in New Issue
Block a user