iSightを使ってBooklog,MediaMarkerインポート用CSVファイルを生成するアプリ
Révision | bc0790a82ed2c91d1c14f02a5788e8979ac62a6e (tree) |
---|---|
l'heure | 2011-05-09 23:51:08 |
Auteur | masakih <masakih@user...> |
Commiter | masakih |
[New] 自動ルックアップをするかどうかをユーザーデフォルトに保存出来るようにした。
@@ -14,6 +14,8 @@ extern NSString *const BEOpenSite; // BERegisterSite. | ||
14 | 14 | |
15 | 15 | extern NSString *const BEDoNotCheckExport; // NSNumber of BOOL. |
16 | 16 | |
17 | +extern NSString *const BEAutoLookup; // NSNumber of BOOL. | |
18 | + | |
17 | 19 | |
18 | 20 | @class BERegisterSite; |
19 | 21 |
@@ -21,6 +23,7 @@ extern NSString *const BEDoNotCheckExport; // NSNumber of BOOL. | ||
21 | 23 | |
22 | 24 | + (BEPreference *)preference; |
23 | 25 | |
26 | +@property BOOL autoLookUp; | |
24 | 27 | |
25 | 28 | @property (nonatomic, assign) NSNumber *exportType; |
26 | 29 | @property BOOL doNotCheckExport; |
@@ -14,6 +14,8 @@ NSString *const BEOpenSite = @"targetSite"; | ||
14 | 14 | |
15 | 15 | NSString *const BEDoNotCheckExport = @"doNotCheckExport"; |
16 | 16 | |
17 | +NSString *const BEAutoLookup = @"autoLookUp"; | |
18 | + | |
17 | 19 | static NSString *const BESiteOpenAttributes = @"SiteOpenAttributes"; |
18 | 20 | |
19 | 21 | @implementation BEPreference |
@@ -63,6 +65,17 @@ static BEPreference *sharedInstance = nil; | ||
63 | 65 | [self setObject:exportType forKey:@"exportType"]; |
64 | 66 | } |
65 | 67 | |
68 | +- (BOOL)autoLookUp | |
69 | +{ | |
70 | + id val = [self objectForKey:BEAutoLookup]; | |
71 | + return [val boolValue]; | |
72 | +} | |
73 | +- (void)setAutoLookUp:(BOOL)flag | |
74 | +{ | |
75 | + [self setObject:[NSNumber numberWithBool:flag] | |
76 | + forKey:BEAutoLookup]; | |
77 | +} | |
78 | + | |
66 | 79 | - (BOOL)doNotCheckExport |
67 | 80 | { |
68 | 81 | id val = [self objectForKey:BEDoNotCheckExport]; |