diff options
Diffstat (limited to 'QSFoundation.framework/Versions/A/PrivateHeaders/NSApplication_BLTRExtensions.h')
| -rw-r--r-- | QSFoundation.framework/Versions/A/PrivateHeaders/NSApplication_BLTRExtensions.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/QSFoundation.framework/Versions/A/PrivateHeaders/NSApplication_BLTRExtensions.h b/QSFoundation.framework/Versions/A/PrivateHeaders/NSApplication_BLTRExtensions.h new file mode 100644 index 0000000..f9b1442 --- /dev/null +++ b/QSFoundation.framework/Versions/A/PrivateHeaders/NSApplication_BLTRExtensions.h @@ -0,0 +1,57 @@ +// +// NSApplication_Extensions.h +// Daedalus +// +// Created by Alcor on Thu May 01 2003. +// Copyright (c) 2003 Blacktree, Inc. All rights reserved. +// + +#import <Cocoa/Cocoa.h> + +#define QSApplicationWillRelaunchNotification @"QSApplicationWillRelaunchNotification" +@interface NSApplication (Info) +- (BOOL)wasLaunchedAtLogin; +- (NSString *)versionString; +- (int)featureLevel; +- (NSDictionary *)processInformation; +- (NSDictionary *)parentProcessInformation; +@end + +@interface NSApplication (Focus) +- (BOOL) stealKeyFocus; +- (BOOL) releaseKeyFocus; +@end + + +@interface NSApplication (Relaunching) +-(IBAction)relaunch:(id)sender; +- (void)requestRelaunch:(id)sender; +-(void)relaunchFromPath:(NSString *)path; +-(void)relaunchAfterMovingFromPath:(NSString *)newPath; +-(void)relaunchAtPath:(NSString *)launchPath movedFromPath:(NSString *)newPath; +-(void)replaceWithUpdateFromPath:(NSString *)newPath; +@end + +@interface NSApplication (LSUIElementManipulation) +-(BOOL)shouldBeUIElement; +-(BOOL)setShouldBeUIElement:(BOOL)hidden; +@end + + +typedef enum { + QSApplicationNormalLaunch = 0, + QSApplicationUpgradedLaunch = 1, + QSApplicationDowngradedLaunch = -1, + QSApplicationFirstLaunch = 2 +} QSApplicationLaunchStatusFlags; + +#define kLastUsedVersion @"Last Used Version" +#define kLastUsedLocation @"Last Used Location" + +@interface NSApplication (LaunchStatus) +-(int)checkLaunchStatus; +-(void)updateLaunchStatusInfo; +@end + + + |