iSightを使ってBooklog,MediaMarkerインポート用CSVファイルを生成するアプリ
Revision | a0945a94d221607244ff604d324053854d1ea177 (tree) |
---|---|
Time | 2011-04-19 21:18:53 |
Author | masakih <masakih@user...> |
Commiter | masakih |
[Fix] LLVMに指摘された問題を修正。
@@ -17,7 +17,7 @@ | ||
17 | 17 | |
18 | 18 | NSURL *endpoint; |
19 | 19 | } |
20 | -@property (retain) BEBookInformation *book; | |
20 | +@property (nonatomic, retain) BEBookInformation *book; | |
21 | 21 | |
22 | 22 | + (id)generatorWithBook:(BEBookInformation *)book; |
23 | 23 | - (id)initWithBook:(BEBookInformation *)book; |
@@ -35,7 +35,8 @@ NSString* encodeURIComponent(NSString* s) { | ||
35 | 35 | } |
36 | 36 | - (id)initWithBook:(BEBookInformation *)aBook |
37 | 37 | { |
38 | - if(self = [super init]) { | |
38 | + self = [super init]; | |
39 | + if(self) { | |
39 | 40 | book = [aBook retain]; |
40 | 41 | timestampDateFormatter = [[NSDateFormatter alloc] init]; |
41 | 42 | [timestampDateFormatter setDateFormat:@"YYYY-MM-dd'T'HH':'mm':'ss'Z'"]; |
@@ -111,7 +111,7 @@ | ||
111 | 111 | */ |
112 | 112 | #if DEBUG |
113 | 113 | BOOL scanBarcode; |
114 | -#endif DEBUG | |
114 | +#endif // DEBUG | |
115 | 115 | |
116 | 116 | SampleCIView *previewView; |
117 | 117 | NSPanel *previewWindow; |
@@ -145,7 +145,7 @@ | ||
145 | 145 | |
146 | 146 | #if DEBUG |
147 | 147 | - (void)setScanBarcode:(BOOL)aBoolValue; |
148 | -#endif DEBUG | |
148 | +#endif // DEBUG | |
149 | 149 | |
150 | 150 | |
151 | 151 | @end |
@@ -36,7 +36,7 @@ | ||
36 | 36 | - (SInt32)osVersion; |
37 | 37 | #ifndef __LP64__ |
38 | 38 | - (void)setShortFocus:(QTCaptureDevice *)videoDevice; |
39 | -#endif | |
39 | +#endif // __LP64__ | |
40 | 40 | - (void) openOldSequenceGrabber: (CGSize) displaySize cropArea: (CGRect) cropArea windowTitle: (NSString *) windowTitle aWindow: (NSWindow *) aWindow; |
41 | 41 | |
42 | 42 | @end |
@@ -99,7 +99,7 @@ | ||
99 | 99 | MyLog(@"Scanning Device: %@", cameraDescription); |
100 | 100 | MyLog(@"ID: %d", productIDNumber); |
101 | 101 | //NSLog(@"Name: %@", [videoDevice localizedDisplayName]); |
102 | -#endif | |
102 | +#endif // DEBUG | |
103 | 103 | |
104 | 104 | //0x8507 |
105 | 105 |
@@ -217,7 +217,7 @@ | ||
217 | 217 | [self setShortFocus:videoDevice]; |
218 | 218 | } |
219 | 219 | } |
220 | -#endif | |
220 | +#endif // __LP64__ | |
221 | 221 | |
222 | 222 | // Create the capture session |
223 | 223 | mCaptureSession = [[QTCaptureSession alloc] init]; |
@@ -372,8 +372,8 @@ | ||
372 | 372 | return; |
373 | 373 | } |
374 | 374 | scanBarcode = NO; |
375 | -#endif CLICK_TO_SCAN | |
376 | -#endif DEBUG | |
375 | +#endif // CLICK_TO_SCAN | |
376 | +#endif // DEBUG | |
377 | 377 | |
378 | 378 | |
379 | 379 | [previewView setGoodScan:NO]; |
@@ -424,7 +424,7 @@ | ||
424 | 424 | } |
425 | 425 | [mGrabber release]; mGrabber = nil; |
426 | 426 | } |
427 | -#endif | |
427 | +#endif // __LP64__ | |
428 | 428 | |
429 | 429 | if (returnValue) { |
430 | 430 | if ([delegate respondsToSelector:@selector(iSightWillClose)]) { |
@@ -652,7 +652,7 @@ | ||
652 | 652 | return; |
653 | 653 | } |
654 | 654 | } |
655 | -#endif | |
655 | +#endif // __LP64__ | |
656 | 656 | |
657 | 657 | #pragma mark - |
658 | 658 | #pragma mark sharedInstance |
@@ -716,7 +716,7 @@ static MyBarcodeScanner *sharedInstance = nil; | ||
716 | 716 | scanBarcode = aBoolValue; |
717 | 717 | } |
718 | 718 | |
719 | -#endif | |
719 | +#endif // DEBUG | |
720 | 720 | |
721 | 721 | @end |
722 | 722 |