• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

iSightを使ってBooklog,MediaMarkerインポート用CSVファイルを生成するアプリ


Commit MetaInfo

Révisionbc0790a82ed2c91d1c14f02a5788e8979ac62a6e (tree)
l'heure2011-05-09 23:51:08
Auteurmasakih <masakih@user...>
Commitermasakih

Message de Log

[New] 自動ルックアップをするかどうかをユーザーデフォルトに保存出来るようにした。

Change Summary

Modification

--- a/BEPreference.h
+++ b/BEPreference.h
@@ -14,6 +14,8 @@ extern NSString *const BEOpenSite; // BERegisterSite.
1414
1515 extern NSString *const BEDoNotCheckExport; // NSNumber of BOOL.
1616
17+extern NSString *const BEAutoLookup; // NSNumber of BOOL.
18+
1719
1820 @class BERegisterSite;
1921
@@ -21,6 +23,7 @@ extern NSString *const BEDoNotCheckExport; // NSNumber of BOOL.
2123
2224 + (BEPreference *)preference;
2325
26+@property BOOL autoLookUp;
2427
2528 @property (nonatomic, assign) NSNumber *exportType;
2629 @property BOOL doNotCheckExport;
--- a/BEPreference.m
+++ b/BEPreference.m
@@ -14,6 +14,8 @@ NSString *const BEOpenSite = @"targetSite";
1414
1515 NSString *const BEDoNotCheckExport = @"doNotCheckExport";
1616
17+NSString *const BEAutoLookup = @"autoLookUp";
18+
1719 static NSString *const BESiteOpenAttributes = @"SiteOpenAttributes";
1820
1921 @implementation BEPreference
@@ -63,6 +65,17 @@ static BEPreference *sharedInstance = nil;
6365 [self setObject:exportType forKey:@"exportType"];
6466 }
6567
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+
6679 - (BOOL)doNotCheckExport
6780 {
6881 id val = [self objectForKey:BEDoNotCheckExport];