This commit is contained in:
kleuter 2019-04-20 14:55:02 +02:00
parent d485017587
commit 5a41ce5e2d

View File

@ -227,10 +227,10 @@ QT_USE_NAMESPACE
application depends on. application depends on.
*/ */
NSAppleEventManager *eventManager = [NSAppleEventManager sharedAppleEventManager]; NSAppleEventManager *eventManager = [NSAppleEventManager sharedAppleEventManager];
[eventManager setEventHandler:self /*[eventManager setEventHandler:self
andSelector:@selector(appleEventQuit:withReplyEvent:) andSelector:@selector(appleEventQuit:withReplyEvent:)
forEventClass:kCoreEventClass forEventClass:kCoreEventClass
andEventID:kAEQuitApplication]; andEventID:kAEQuitApplication];*/
[eventManager setEventHandler:self [eventManager setEventHandler:self
andSelector:@selector(getUrl:withReplyEvent:) andSelector:@selector(getUrl:withReplyEvent:)
forEventClass:kInternetEventClass forEventClass:kInternetEventClass
@ -241,7 +241,7 @@ QT_USE_NAMESPACE
- (void)removeAppleEventHandlers - (void)removeAppleEventHandlers
{ {
NSAppleEventManager *eventManager = [NSAppleEventManager sharedAppleEventManager]; NSAppleEventManager *eventManager = [NSAppleEventManager sharedAppleEventManager];
[eventManager removeEventHandlerForEventClass:kCoreEventClass andEventID:kAEQuitApplication]; //[eventManager removeEventHandlerForEventClass:kCoreEventClass andEventID:kAEQuitApplication];
[eventManager removeEventHandlerForEventClass:kInternetEventClass andEventID:kAEGetURL]; [eventManager removeEventHandlerForEventClass:kInternetEventClass andEventID:kAEGetURL];
} }