1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-23 07:01:39 +00:00

Fixed appdata logic which was broken on OS X.

This commit is contained in:
Virgil Dupras
2013-11-10 11:05:03 -05:00
parent 12cf9b800b
commit 76f45fb5a6
8 changed files with 33 additions and 19 deletions

View File

@@ -20,6 +20,7 @@
- (NSString *)bundleIdentifier;
- (NSString *)appVersion;
- (NSString *)osxVersion;
- (NSString *)bundleInfo:(NSString *)key;
- (void)postNotification:(NSString *)name userInfo:(NSDictionary *)userInfo;
- (id)prefValue:(NSString *)prefname;
- (void)setPrefValue:(NSString *)prefname value:(id)value;

View File

@@ -92,6 +92,11 @@
return [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"];
}
- (NSString *)bundleInfo:(NSString *)key
{
return [[NSBundle mainBundle] objectForInfoDictionaryKey:key];
}
- (NSString *)osxVersion
{
SInt32 major, minor, bugfix;