mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
Removed all Cocoa categories from Sparkle by integrating things into other classes or making categories on existing Sparkle classes. Whoo!
36 lines
869 B
Objective-C
36 lines
869 B
Objective-C
//
|
|
// SUHost.h
|
|
// Sparkle
|
|
//
|
|
// Copyright 2008 Andy Matuschak. All rights reserved.
|
|
//
|
|
|
|
#import "Sparkle.h"
|
|
|
|
@interface SUHost : NSObject
|
|
{
|
|
NSBundle *bundle;
|
|
}
|
|
|
|
+ (NSString *)systemVersionString;
|
|
|
|
- (id)initWithBundle:(NSBundle *)aBundle;
|
|
- (NSBundle *)bundle;
|
|
- (NSString *)bundlePath;
|
|
- (NSString *)name;
|
|
- (NSString *)version;
|
|
- (NSString *)displayVersion;
|
|
- (NSImage *)icon;
|
|
- (BOOL)isRunningOnReadOnlyVolume;
|
|
- (BOOL)isBackgroundApplication;
|
|
- (NSString *)publicDSAKey;
|
|
- (NSArray *)systemProfile;
|
|
|
|
- (id)objectForInfoDictionaryKey:(NSString *)key;
|
|
- (BOOL)boolForInfoDictionaryKey:(NSString *)key;
|
|
- (id)objectForUserDefaultsKey:(NSString *)defaultName;
|
|
- (void)setObject:(id)value forUserDefaultsKey:(NSString *)defaultName;
|
|
- (BOOL)boolForUserDefaultsKey:(NSString *)defaultName;
|
|
- (void)setBool:(BOOL)value forUserDefaultsKey:(NSString *)defaultName;
|
|
@end
|