iSightを使ってBooklog,MediaMarkerインポート用CSVファイルを生成するアプリ
修订版 | 10ce157cbc2997d76f6d82d38a606194e0a5e1fe (tree) |
---|---|
时间 | 2011-06-02 22:52:51 |
作者 | masakih <masakih@user...> |
Commiter | masakih |
[Fix] メソッド名がおかしかったので修正。
@@ -71,7 +71,7 @@ | ||
71 | 71 | normalizeString([registerDateFormatter stringFromDate:book.readDate]), |
72 | 72 | normalizeString([registerDateFormatter stringFromDate:book.registerDate])]; |
73 | 73 | } |
74 | -- (BOOL)needsNewLineToEndOfFile | |
74 | +- (BOOL)needsNewLineAtEndOfFile | |
75 | 75 | { |
76 | 76 | return YES; |
77 | 77 | } |
@@ -42,6 +42,6 @@ NSString *tagsString(NSArray *tags); | ||
42 | 42 | - (NSString *)lineForBook:(BEBookInformation *)book; |
43 | 43 | - (NSString *)lineSeparator; // default line sparator is CRLF. |
44 | 44 | - (NSStringEncoding)fileEncoding; // default fileEncoding is NSShiftJISStringEncoding. |
45 | -- (BOOL)needsNewLineToEndOfFile; // default is NO. | |
45 | +- (BOOL)needsNewLineAtEndOfFile; // default is NO. | |
46 | 46 | |
47 | 47 | @end |
@@ -65,7 +65,7 @@ | ||
65 | 65 | |
66 | 66 | NSString *string = [lines componentsJoinedByString:[self lineSeparator]]; |
67 | 67 | [lines release]; lines = nil; |
68 | - if([self needsNewLineToEndOfFile]) { | |
68 | + if([self needsNewLineAtEndOfFile]) { | |
69 | 69 | string = [string stringByAppendingString:[self lineSeparator]]; |
70 | 70 | } |
71 | 71 | NSError *error = nil; |
@@ -116,6 +116,6 @@ NSString *normalizeString(NSString *string) | ||
116 | 116 | - (NSString *)lineForBook:(BEBookInformation *)book { return nil; } |
117 | 117 | - (NSString *)lineSeparator { return @"\r\n"; } |
118 | 118 | - (NSStringEncoding)fileEncoding { return NSShiftJISStringEncoding; } |
119 | -- (BOOL)needsNewLineToEndOfFile { return NO; } | |
119 | +- (BOOL)needsNewLineAtEndOfFile { return NO; } | |
120 | 120 | |
121 | 121 | @end |
@@ -63,7 +63,7 @@ | ||
63 | 63 | doubleQuoteQuotedString(tag[4]) |
64 | 64 | ]; |
65 | 65 | } |
66 | -- (BOOL)needsNewLineToEndOfFile | |
66 | +- (BOOL)needsNewLineAtEndOfFile | |
67 | 67 | { |
68 | 68 | return YES; |
69 | 69 | } |