QueuingApplicationDelegate.m revision 4730
4639N/A#import <Cocoa/Cocoa.h>
4639N/A return [[[[self objectForInfoDictionaryKey:@"Java"] objectForKey:@"EAWTOverride"] objectForKey:key] boolValue];
4639N/A fHandlesDocumentTypes = [bundle objectForInfoDictionaryKey:@"CFBundleDocumentTypes"] != nil || [bundle _hasEAWTOverride:@"DocumentHandler"];
4639N/A fHandlesURLTypes = [bundle objectForInfoDictionaryKey:@"CFBundleURLTypes"] != nil || [bundle _hasEAWTOverride:@"URLHandler"];
4639N/A if (fHandlesURLTypes) {
4639N/A [ctr addObserver:self selector:@selector(_willFinishLaunching) name:NSApplicationWillFinishLaunchingNotification object:nil];
4639N/A [ctr addObserver:self selector:@selector(_systemWillPowerOff) name:NSWorkspaceWillPowerOffNotification object:nil];
4639N/A [ctr addObserver:self selector:@selector(_appDidActivate) name:NSApplicationDidBecomeActiveNotification object:nil];
4639N/A [ctr addObserver:self selector:@selector(_appDidDeactivate) name:NSApplicationDidResignActiveNotification object:nil];
4639N/A [ctr addObserver:self selector:@selector(_appDidHide) name:NSApplicationDidHideNotification object:nil];
4639N/A [ctr addObserver:self selector:@selector(_appDidUnhide) name:NSApplicationDidUnhideNotification object:nil];
4639N/A if (fHandlesURLTypes) {
4639N/A [[NSAppleEventManager sharedAppleEventManager] removeEventHandlerForEventClass: kInternetEventClass andEventID:kAEGetURL];
4639N/A- (void)_handleOpenURLEvent:(NSAppleEventDescriptor *)openURLEvent withReplyEvent:(NSAppleEventDescriptor *)replyEvent
4639N/A- (NSApplicationPrintReply)application:(NSApplication *)application printFiles:(NSArray *)fileNames withSettings:(NSDictionary *)printSettings showPrintPanels:(BOOL)showPrintPanels
4639N/A if (!fHandlesDocumentTypes) {
4639N/A return NSPrintingCancelled;
4639N/A [realDelegate application:application printFiles:fileNames withSettings:printSettings showPrintPanels:showPrintPanels];
4639N/A return NSPrintingSuccess;
4639N/A- (void)_willFinishLaunching
4639N/A- (BOOL)applicationShouldHandleReopen:(NSApplication *)theApplication hasVisibleWindows:(BOOL)flag
4639N/A return NSTerminateLater;
4639N/A- (void)_systemWillPowerOff
4639N/A- (void)_appDidActivate
4639N/A- (void)_appDidDeactivate
4639N/A- (void)_appDidHide
4639N/A- (void)_appDidUnhide