blob: 7318187bfdaf44cb21a76c47be36626e2f082de0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
// SDLAppInfo.m
//
#import "SDLAppInfo.h"
#import "SDLNames.h"
@implementation SDLAppInfo
- (void)setAppDisplayName:(NSString *)appDisplayName {
if (appDisplayName != nil) {
[store setObject:appDisplayName forKey:NAMES_appDisplayName];
} else {
[store removeObjectForKey:NAMES_appDisplayName];
}
}
- (NSString *)appDisplayName {
return [store objectForKey:NAMES_appDisplayName];
}
- (void)setAppBundleID:(NSString *)appBundleID {
if (appBundleID != nil) {
[store setObject:appBundleID forKey:NAMES_appBundleID];
} else {
[store removeObjectForKey:NAMES_appBundleID];
}
}
- (NSString *)appBundleID {
return [store objectForKey:NAMES_appBundleID];
}
- (void)setAppVersion:(NSString *)appVersion {
if (appVersion != nil) {
[store setObject:appVersion forKey:NAMES_appVersion];
} else {
[store removeObjectForKey:NAMES_appVersion];
}
}
- (NSString *)appVersion {
return [store objectForKey:NAMES_appVersion];
}
@end
|