2013-06-23 01:32:48 +00:00
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
|
|
@interface CocoaProxy : NSObject
|
|
|
|
{
|
|
|
|
NSAutoreleasePool *currentPool;
|
|
|
|
}
|
|
|
|
- (void)openPath:(NSString *)path;
|
|
|
|
- (void)openURL:(NSString *)url;
|
|
|
|
- (void)revealPath:(NSString *)path;
|
|
|
|
- (NSString *)getUTI:(NSString *)path;
|
|
|
|
- (BOOL)type:(NSString *)type conformsToType:(NSString *)refType;
|
|
|
|
- (NSString *)getAppdataPath;
|
|
|
|
- (NSString *)getCachePath;
|
|
|
|
- (NSString *)getResourcePath;
|
|
|
|
- (NSString *)systemLang;
|
|
|
|
- (NSString *)systemShortDateFormat;
|
|
|
|
- (NSString *)systemNumberDecimalSeparator;
|
|
|
|
- (NSString *)systemNumberGroupingSeparator;
|
|
|
|
- (NSString *)systemCurrency;
|
|
|
|
- (NSString *)bundleIdentifier;
|
|
|
|
- (NSString *)appVersion;
|
|
|
|
- (NSString *)osxVersion;
|
2013-11-10 16:05:03 +00:00
|
|
|
- (NSString *)bundleInfo:(NSString *)key;
|
2013-06-23 01:32:48 +00:00
|
|
|
- (void)postNotification:(NSString *)name userInfo:(NSDictionary *)userInfo;
|
|
|
|
- (id)prefValue:(NSString *)prefname;
|
|
|
|
- (void)setPrefValue:(NSString *)prefname value:(id)value;
|
|
|
|
- (id)prefValue:(NSString *)prefname inDomain:(NSString *)domain;
|
|
|
|
- (NSString *)url2path:(NSString *)url;
|
|
|
|
- (void)createPool;
|
|
|
|
- (void)destroyPool;
|
|
|
|
- (void)reportCrash:(NSString *)crashReport;
|
|
|
|
- (void)log:(NSString *)s;
|
2013-11-10 17:00:16 +00:00
|
|
|
- (NSDictionary *)readExifData:(NSString *)imagePath;
|
2013-06-23 01:32:48 +00:00
|
|
|
@end
|