mirror of
https://github.com/crystalidea/qt-build-tools.git
synced 2024-11-29 22:55:54 +08:00
This commit is contained in:
parent
9722a392e4
commit
15443a4cab
@ -262,10 +262,10 @@ QT_END_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
|
||||||
@ -276,7 +276,7 @@ QT_END_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];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user