iSightを使ってBooklog,MediaMarkerインポート用CSVファイルを生成するアプリ
修订版 | acf3ac9b31835dd382b4f3d222dc3a6092ffef13 (tree) |
---|---|
时间 | 2011-03-02 21:07:55 |
作者 | masakih <masakih@user...> |
Commiter | masakih |
[Mod] 不要なコード削除。
[Fix] メモリリーク修正。
[FIx] 無駄なメッセージング削除。
@@ -16,7 +16,7 @@ | ||
16 | 16 | |
17 | 17 | + (id)genaratorWithParams:(NSDictionary *)aParams |
18 | 18 | { |
19 | - return [[[self class] alloc] initWithParams:aParams]; | |
19 | + return [[[[self class] alloc] initWithParams:aParams] autorelease]; | |
20 | 20 | } |
21 | 21 | - (id)initWithParams:(NSDictionary *)aParams |
22 | 22 | { |
@@ -11,22 +11,6 @@ | ||
11 | 11 | |
12 | 12 | @interface BEBookInformation : NSManagedObject |
13 | 13 | { |
14 | -// NSString *isbn; | |
15 | -// NSString *category; | |
16 | -// NSDate *registerDate; | |
17 | -// NSArray *tags; | |
18 | -// NSString *review; | |
19 | -// NSNumber *rating; | |
20 | -// NSNumber *status; | |
21 | -// NSDate *readDate; | |
22 | -// | |
23 | -// NSString *title; | |
24 | -// NSString *asin; | |
25 | -// NSString *amazonISBN; | |
26 | -// NSString *author; | |
27 | -// NSString *manufacturer; | |
28 | -// NSDate *publicationDate; | |
29 | -// | |
30 | 14 | BOOL exported; |
31 | 15 | } |
32 | 16 |
@@ -31,6 +31,11 @@ | ||
31 | 31 | |
32 | 32 | return [[[createClass alloc] init] autorelease]; |
33 | 33 | } |
34 | +- (void)dealloc | |
35 | +{ | |
36 | + [books release]; | |
37 | + [super dealloc]; | |
38 | +} | |
34 | 39 | - (BOOL)exportToURL:(NSURL *)url |
35 | 40 | { |
36 | 41 | [self doesNotRecognizeSelector:_cmd]; |
@@ -11,4 +11,10 @@ | ||
11 | 11 | |
12 | 12 | @implementation BEExportAccessoryViewController |
13 | 13 | @synthesize type; |
14 | + | |
15 | +- (void)dealloc | |
16 | +{ | |
17 | + [type release]; | |
18 | + [super dealloc]; | |
19 | +} | |
14 | 20 | @end |
@@ -141,7 +141,7 @@ | ||
141 | 141 | inManagedObjectContext:[books managedObjectContext]]; |
142 | 142 | book.isbn = barcode; |
143 | 143 | if([self autoLookUp]) { |
144 | - [BEAmazonLookup setNameToBooks:[NSArray arrayWithObject:book]]; | |
144 | + [BEAmazonLookup setNameToBook:book]; | |
145 | 145 | } |
146 | 146 | [books performSelector:@selector(setSelectedObjects:) |
147 | 147 | withObject:[NSArray arrayWithObject:book] |
@@ -11,7 +11,7 @@ | ||
11 | 11 | <string key="NS.object.0">823</string> |
12 | 12 | </object> |
13 | 13 | <array class="NSMutableArray" key="IBDocument.EditedObjectIDs"> |
14 | - <integer value="2"/> | |
14 | + <integer value="316"/> | |
15 | 15 | </array> |
16 | 16 | <array key="IBDocument.PluginDependencies"> |
17 | 17 | <string>com.apple.InterfaceBuilder.CocoaPlugin</string> |
@@ -755,7 +755,7 @@ AQABAAEAAQAB//+dkAEA//+PgAAE//+dkAEI//+dkAEMUERUAFBTVABQV1QAUFBUAAAAAAEAAAABA</b | ||
755 | 755 | </object> |
756 | 756 | <object class="NSTokenField" id="432769029"> |
757 | 757 | <reference key="NSNextResponder" ref="404909133"/> |
758 | - <int key="NSvFlags">270</int> | |
758 | + <int key="NSvFlags">266</int> | |
759 | 759 | <set class="NSMutableSet" key="NSDragTypes"> |
760 | 760 | <string>NSStringPboardType</string> |
761 | 761 | </set> |
@@ -843,7 +843,7 @@ AQABAAEAAQAB//+dkAEA//+PgAAE//+dkAEI//+dkAEMUERUAFBTVABQV1QAUFBUAAAAAAEAAAABA</b | ||
843 | 843 | </object> |
844 | 844 | <object class="NSTextField" id="681423236"> |
845 | 845 | <reference key="NSNextResponder" ref="404909133"/> |
846 | - <int key="NSvFlags">270</int> | |
846 | + <int key="NSvFlags">266</int> | |
847 | 847 | <string key="NSFrame">{{137, 194}, {503, 22}}</string> |
848 | 848 | <reference key="NSSuperview" ref="404909133"/> |
849 | 849 | <bool key="NSEnabled">YES</bool> |
@@ -955,7 +955,7 @@ AQABAAEAAQAB//+dkAEA//+PgAAE//+dkAEI//+dkAEMUERUAFBTVABQV1QAUFBUAAAAAAEAAAABA</b | ||
955 | 955 | </object> |
956 | 956 | <object class="NSTextField" id="608085379"> |
957 | 957 | <reference key="NSNextResponder" ref="404909133"/> |
958 | - <int key="NSvFlags">268</int> | |
958 | + <int key="NSvFlags">266</int> | |
959 | 959 | <string key="NSFrame">{{284, 44}, {356, 119}}</string> |
960 | 960 | <reference key="NSSuperview" ref="404909133"/> |
961 | 961 | <bool key="NSEnabled">YES</bool> |
@@ -1116,38 +1116,6 @@ AQABAAEAAQAB//+dkAEA//+PgAAE//+dkAEI//+dkAEMUERUAFBTVABQV1QAUFBUAAAAAAEAAAABA</b | ||
1116 | 1116 | </object> |
1117 | 1117 | <object class="IBConnectionRecord"> |
1118 | 1118 | <object class="IBBindingConnection" key="connection"> |
1119 | - <string key="label">value: selection.registerDate</string> | |
1120 | - <reference key="source" ref="692614802"/> | |
1121 | - <reference key="destination" ref="1064620552"/> | |
1122 | - <object class="NSNibBindingConnector" key="connector"> | |
1123 | - <reference key="NSSource" ref="692614802"/> | |
1124 | - <reference key="NSDestination" ref="1064620552"/> | |
1125 | - <string key="NSLabel">value: selection.registerDate</string> | |
1126 | - <string key="NSBinding">value</string> | |
1127 | - <string key="NSKeyPath">selection.registerDate</string> | |
1128 | - <int key="NSNibBindingConnectorVersion">2</int> | |
1129 | - </object> | |
1130 | - </object> | |
1131 | - <int key="connectionID">294</int> | |
1132 | - </object> | |
1133 | - <object class="IBConnectionRecord"> | |
1134 | - <object class="IBBindingConnection" key="connection"> | |
1135 | - <string key="label">value: selection.readDate</string> | |
1136 | - <reference key="source" ref="73065456"/> | |
1137 | - <reference key="destination" ref="1064620552"/> | |
1138 | - <object class="NSNibBindingConnector" key="connector"> | |
1139 | - <reference key="NSSource" ref="73065456"/> | |
1140 | - <reference key="NSDestination" ref="1064620552"/> | |
1141 | - <string key="NSLabel">value: selection.readDate</string> | |
1142 | - <string key="NSBinding">value</string> | |
1143 | - <string key="NSKeyPath">selection.readDate</string> | |
1144 | - <int key="NSNibBindingConnectorVersion">2</int> | |
1145 | - </object> | |
1146 | - </object> | |
1147 | - <int key="connectionID">295</int> | |
1148 | - </object> | |
1149 | - <object class="IBConnectionRecord"> | |
1150 | - <object class="IBBindingConnection" key="connection"> | |
1151 | 1119 | <string key="label">value: arrangedObjects.registerDate</string> |
1152 | 1120 | <reference key="source" ref="673176804"/> |
1153 | 1121 | <reference key="destination" ref="1064620552"/> |
@@ -1440,6 +1408,46 @@ AQABAAEAAQAB//+dkAEA//+PgAAE//+dkAEI//+dkAEMUERUAFBTVABQV1QAUFBUAAAAAAEAAAABA</b | ||
1440 | 1408 | </object> |
1441 | 1409 | <int key="connectionID">401</int> |
1442 | 1410 | </object> |
1411 | + <object class="IBConnectionRecord"> | |
1412 | + <object class="IBBindingConnection" key="connection"> | |
1413 | + <string key="label">value: selection.registerDate</string> | |
1414 | + <reference key="source" ref="692614802"/> | |
1415 | + <reference key="destination" ref="1064620552"/> | |
1416 | + <object class="NSNibBindingConnector" key="connector"> | |
1417 | + <reference key="NSSource" ref="692614802"/> | |
1418 | + <reference key="NSDestination" ref="1064620552"/> | |
1419 | + <string key="NSLabel">value: selection.registerDate</string> | |
1420 | + <string key="NSBinding">value</string> | |
1421 | + <string key="NSKeyPath">selection.registerDate</string> | |
1422 | + <object class="NSDictionary" key="NSOptions"> | |
1423 | + <string key="NS.key.0">NSNoSelectionPlaceholder</string> | |
1424 | + <string key="NS.object.0">--/--/--</string> | |
1425 | + </object> | |
1426 | + <int key="NSNibBindingConnectorVersion">2</int> | |
1427 | + </object> | |
1428 | + </object> | |
1429 | + <int key="connectionID">402</int> | |
1430 | + </object> | |
1431 | + <object class="IBConnectionRecord"> | |
1432 | + <object class="IBBindingConnection" key="connection"> | |
1433 | + <string key="label">value: selection.readDate</string> | |
1434 | + <reference key="source" ref="73065456"/> | |
1435 | + <reference key="destination" ref="1064620552"/> | |
1436 | + <object class="NSNibBindingConnector" key="connector"> | |
1437 | + <reference key="NSSource" ref="73065456"/> | |
1438 | + <reference key="NSDestination" ref="1064620552"/> | |
1439 | + <string key="NSLabel">value: selection.readDate</string> | |
1440 | + <string key="NSBinding">value</string> | |
1441 | + <string key="NSKeyPath">selection.readDate</string> | |
1442 | + <object class="NSDictionary" key="NSOptions"> | |
1443 | + <string key="NS.key.0">NSNoSelectionPlaceholder</string> | |
1444 | + <string key="NS.object.0">--/--/--</string> | |
1445 | + </object> | |
1446 | + <int key="NSNibBindingConnectorVersion">2</int> | |
1447 | + </object> | |
1448 | + </object> | |
1449 | + <int key="connectionID">403</int> | |
1450 | + </object> | |
1443 | 1451 | </array> |
1444 | 1452 | <object class="IBMutableOrderedSet" key="objectRecords"> |
1445 | 1453 | <array key="orderedObjects"> |
@@ -2109,7 +2117,7 @@ AQABAAEAAQAB//+dkAEA//+PgAAE//+dkAEI//+dkAEMUERUAFBTVABQV1QAUFBUAAAAAAEAAAABA</b | ||
2109 | 2117 | <nil key="activeLocalization"/> |
2110 | 2118 | <dictionary class="NSMutableDictionary" key="localizations"/> |
2111 | 2119 | <nil key="sourceID"/> |
2112 | - <int key="maxID">401</int> | |
2120 | + <int key="maxID">403</int> | |
2113 | 2121 | </object> |
2114 | 2122 | <object class="IBClassDescriber" key="IBDocument.Classes"> |
2115 | 2123 | <array class="NSMutableArray" key="referencedPartialClassDescriptions"> |