• 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

Revision18574e9ad6c7fdd54b5c3ac2b03fef54f749f7ac (tree)
Time2011-05-08 12:33:35
Authormasakih <masakih@user...>
Commitermasakih

Log Message

[Mod] 前回出力したエクスポートタイプを保存出来るようにした。

Change Summary

Incremental Difference

--- a/BEPreference.h
+++ b/BEPreference.h
@@ -22,6 +22,7 @@ extern NSString *const BEDoNotCheckExport; // NSNumber of BOOL.
2222 + (BEPreference *)preference;
2323
2424
25+@property (nonatomic, assign) NSNumber *exportType;
2526 @property BOOL doNotCheckExport;
2627
2728 @property (nonatomic, retain) NSArray *attributes; // Array of BEExporterAttribute.
--- a/BEPreference.m
+++ b/BEPreference.m
@@ -50,6 +50,19 @@ static BEPreference *sharedInstance = nil;
5050 [self setObject:data forKey:BESiteOpenAttributes];
5151 }
5252
53+- (NSNumber *)exportType
54+{
55+ NSNumber *type = [self objectForKey:@"exportType"];
56+ if(!type) {
57+ type = [NSNumber numberWithInteger:0];
58+ }
59+ return type;
60+}
61+- (void)setExportType:(NSNumber *)exportType
62+{
63+ [self setObject:exportType forKey:@"exportType"];
64+}
65+
5366 - (BOOL)doNotCheckExport
5467 {
5568 id val = [self objectForKey:BEDoNotCheckExport];