masakih

あれとこれコンバータ (プロジェクト終了)

  • R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqt誰得cocoapythonrubywindowsphpgameguibathyscaphec翻訳omegatframework計画中(planning stage)twitterdombtronvb.nettestarduinodirectxpreviewerゲームエンジン

あれとこれのコンバータ


Commit MetaInfo

Révision947da00e58b62ddf2066871eb164e98e0aee9abd (tree)
l'heure2011-11-30 23:42:07
Auteurmasakih <masakih@user...>
Commitermasakih

Message de Log

CoreData -> SQLite 変換を一部実装。

Change Summary

Modification

--- a/BathyScapheDataConverter/BSCDProgressPanel.xib
+++ b/BathyScapheDataConverter/BSCDProgressPanel.xib
@@ -18,6 +18,7 @@
1818 <string>NSTextField</string>
1919 <string>NSTextFieldCell</string>
2020 <string>NSButtonCell</string>
21+ <string>NSDateFormatter</string>
2122 <string>NSButton</string>
2223 <string>NSCustomObject</string>
2324 </object>
@@ -43,7 +44,7 @@
4344 <object class="NSWindowTemplate" id="1005">
4445 <int key="NSWindowStyleMask">1</int>
4546 <int key="NSWindowBacking">2</int>
46- <string key="NSWindowRect">{{196, 240}, {480, 203}}</string>
47+ <string key="NSWindowRect">{{196, 240}, {413, 186}}</string>
4748 <int key="NSWTFlags">544735232</int>
4849 <string key="NSWindowTitle">Window</string>
4950 <string key="NSWindowClass">NSWindow</string>
@@ -58,7 +59,7 @@
5859 <reference key="NSNextResponder" ref="1006"/>
5960 <int key="NSvFlags">1292</int>
6061 <object class="NSPSMatrix" key="NSDrawMatrix"/>
61- <string key="NSFrame">{{18, 56}, {444, 20}}</string>
62+ <string key="NSFrame">{{18, 56}, {377, 20}}</string>
6263 <reference key="NSSuperview" ref="1006"/>
6364 <reference key="NSWindow"/>
6465 <reference key="NSNextKeyView" ref="298109841"/>
@@ -69,7 +70,7 @@
6970 <object class="NSButton" id="298109841">
7071 <reference key="NSNextResponder" ref="1006"/>
7172 <int key="NSvFlags">268</int>
72- <string key="NSFrame">{{384, 12}, {82, 32}}</string>
73+ <string key="NSFrame">{{317, 12}, {82, 32}}</string>
7374 <reference key="NSSuperview" ref="1006"/>
7475 <reference key="NSWindow"/>
7576 <reference key="NSNextKeyView"/>
@@ -97,7 +98,7 @@
9798 <object class="NSTextField" id="751752688">
9899 <reference key="NSNextResponder" ref="1006"/>
99100 <int key="NSvFlags">268</int>
100- <string key="NSFrame">{{17, 166}, {446, 17}}</string>
101+ <string key="NSFrame">{{17, 149}, {446, 17}}</string>
101102 <reference key="NSSuperview" ref="1006"/>
102103 <reference key="NSWindow"/>
103104 <reference key="NSNextKeyView" ref="404229335"/>
@@ -133,17 +134,18 @@
133134 <object class="NSTextField" id="404229335">
134135 <reference key="NSNextResponder" ref="1006"/>
135136 <int key="NSvFlags">268</int>
136- <string key="NSFrame">{{29, 87}, {434, 71}}</string>
137+ <string key="NSFrame">{{29, 107}, {367, 34}}</string>
137138 <reference key="NSSuperview" ref="1006"/>
138139 <reference key="NSWindow"/>
139- <reference key="NSNextKeyView" ref="795345144"/>
140+ <reference key="NSNextKeyView" ref="865304595"/>
140141 <string key="NSReuseIdentifierKey">_NS:360</string>
141142 <string key="NSAntiCompressionPriority">{250, 750}</string>
142143 <bool key="NSEnabled">YES</bool>
143144 <object class="NSTextFieldCell" key="NSCell" id="474223137">
144145 <int key="NSCellFlags">67239424</int>
145146 <int key="NSCellFlags2">272629760</int>
146- <string key="NSContents">Multiline Label</string>
147+ <string type="base64-UTF8" key="NSContents">Q29udmVydGluZyB0aHJlYWQgaW5mb3JtYXRpb25zIC4uLiAgICAgICAgICAgICAgICAgICAgICAgICAg
148+ICAgICAgICAgICAKaG9nZQ</string>
147149 <object class="NSFont" key="NSSupport">
148150 <string key="NSName">LucidaGrande</string>
149151 <double key="NSSize">13</double>
@@ -155,8 +157,67 @@
155157 <reference key="NSTextColor" ref="598119629"/>
156158 </object>
157159 </object>
160+ <object class="NSTextField" id="129281907">
161+ <reference key="NSNextResponder" ref="1006"/>
162+ <int key="NSvFlags">268</int>
163+ <string key="NSFrame">{{339, 84}, {57, 17}}</string>
164+ <reference key="NSSuperview" ref="1006"/>
165+ <reference key="NSWindow"/>
166+ <reference key="NSNextKeyView" ref="795345144"/>
167+ <string key="NSReuseIdentifierKey">_NS:3944</string>
168+ <bool key="NSEnabled">YES</bool>
169+ <object class="NSTextFieldCell" key="NSCell" id="889304367">
170+ <int key="NSCellFlags">68288064</int>
171+ <int key="NSCellFlags2">71304192</int>
172+ <object class="NSDate" key="NSContents">
173+ <double key="NS.time">-978339600</double>
174+ </object>
175+ <reference key="NSSupport" ref="343840516"/>
176+ <object class="NSDateFormatter" key="NSFormatter" id="337277413">
177+ <object class="NSMutableDictionary" key="NS.attributes">
178+ <bool key="EncodedWithXMLCoder">YES</bool>
179+ <object class="NSArray" key="dict.sortedKeys">
180+ <bool key="EncodedWithXMLCoder">YES</bool>
181+ <string>formatterBehavior</string>
182+ <string>timeStyle</string>
183+ </object>
184+ <object class="NSMutableArray" key="dict.values">
185+ <bool key="EncodedWithXMLCoder">YES</bool>
186+ <integer value="1040"/>
187+ <integer value="2"/>
188+ </object>
189+ </object>
190+ <string key="NS.format">H:mm:ss</string>
191+ <bool key="NS.natural">NO</bool>
192+ </object>
193+ <string key="NSCellIdentifier">_NS:3944</string>
194+ <reference key="NSControlView" ref="129281907"/>
195+ <reference key="NSBackgroundColor" ref="9884855"/>
196+ <reference key="NSTextColor" ref="598119629"/>
197+ </object>
198+ </object>
199+ <object class="NSTextField" id="865304595">
200+ <reference key="NSNextResponder" ref="1006"/>
201+ <int key="NSvFlags">268</int>
202+ <string key="NSFrame">{{29, 84}, {77, 17}}</string>
203+ <reference key="NSSuperview" ref="1006"/>
204+ <reference key="NSWindow"/>
205+ <reference key="NSNextKeyView" ref="129281907"/>
206+ <string key="NSReuseIdentifierKey">_NS:3944</string>
207+ <bool key="NSEnabled">YES</bool>
208+ <object class="NSTextFieldCell" key="NSCell" id="632324638">
209+ <int key="NSCellFlags">68288064</int>
210+ <int key="NSCellFlags2">71304192</int>
211+ <string key="NSContents">1000/1000</string>
212+ <reference key="NSSupport" ref="343840516"/>
213+ <string key="NSCellIdentifier">_NS:3944</string>
214+ <reference key="NSControlView" ref="865304595"/>
215+ <reference key="NSBackgroundColor" ref="9884855"/>
216+ <reference key="NSTextColor" ref="598119629"/>
217+ </object>
218+ </object>
158219 </object>
159- <string key="NSFrameSize">{480, 203}</string>
220+ <string key="NSFrameSize">{413, 186}</string>
160221 <reference key="NSSuperview"/>
161222 <reference key="NSWindow"/>
162223 <reference key="NSNextKeyView" ref="751752688"/>
@@ -190,7 +251,7 @@
190251 <string key="label">animate: inProgress</string>
191252 <reference key="source" ref="795345144"/>
192253 <reference key="destination" ref="1001"/>
193- <object class="NSNibBindingConnector" key="connector">
254+ <object class="NSNibBindingConnector" key="connector" id="287540750">
194255 <reference key="NSSource" ref="795345144"/>
195256 <reference key="NSDestination" ref="1001"/>
196257 <string key="NSLabel">animate: inProgress</string>
@@ -203,6 +264,60 @@
203264 </object>
204265 <object class="IBConnectionRecord">
205266 <object class="IBBindingConnection" key="connection">
267+ <string key="label">maxValue: amount</string>
268+ <reference key="source" ref="795345144"/>
269+ <reference key="destination" ref="1001"/>
270+ <object class="NSNibBindingConnector" key="connector" id="727006681">
271+ <reference key="NSSource" ref="795345144"/>
272+ <reference key="NSDestination" ref="1001"/>
273+ <string key="NSLabel">maxValue: amount</string>
274+ <string key="NSBinding">maxValue</string>
275+ <string key="NSKeyPath">amount</string>
276+ <int key="NSNibBindingConnectorVersion">2</int>
277+ </object>
278+ </object>
279+ <int key="connectionID">17</int>
280+ </object>
281+ <object class="IBConnectionRecord">
282+ <object class="IBBindingConnection" key="connection">
283+ <string key="label">value: count</string>
284+ <reference key="source" ref="795345144"/>
285+ <reference key="destination" ref="1001"/>
286+ <object class="NSNibBindingConnector" key="connector">
287+ <reference key="NSSource" ref="795345144"/>
288+ <reference key="NSDestination" ref="1001"/>
289+ <string key="NSLabel">value: count</string>
290+ <string key="NSBinding">value</string>
291+ <string key="NSKeyPath">count</string>
292+ <reference key="NSPreviousConnector" ref="727006681"/>
293+ <int key="NSNibBindingConnectorVersion">2</int>
294+ </object>
295+ </object>
296+ <int key="connectionID">18</int>
297+ </object>
298+ <object class="IBConnectionRecord">
299+ <object class="IBBindingConnection" key="connection">
300+ <string key="label">isIndeterminate: amount</string>
301+ <reference key="source" ref="795345144"/>
302+ <reference key="destination" ref="1001"/>
303+ <object class="NSNibBindingConnector" key="connector">
304+ <reference key="NSSource" ref="795345144"/>
305+ <reference key="NSDestination" ref="1001"/>
306+ <string key="NSLabel">isIndeterminate: amount</string>
307+ <string key="NSBinding">isIndeterminate</string>
308+ <string key="NSKeyPath">amount</string>
309+ <object class="NSDictionary" key="NSOptions">
310+ <string key="NS.key.0">NSValueTransformerName</string>
311+ <string key="NS.object.0">NSNegateBoolean</string>
312+ </object>
313+ <reference key="NSPreviousConnector" ref="287540750"/>
314+ <int key="NSNibBindingConnectorVersion">2</int>
315+ </object>
316+ </object>
317+ <int key="connectionID">20</int>
318+ </object>
319+ <object class="IBConnectionRecord">
320+ <object class="IBBindingConnection" key="connection">
206321 <string key="label">value: label</string>
207322 <reference key="source" ref="751752688"/>
208323 <reference key="destination" ref="1001"/>
@@ -233,6 +348,83 @@
233348 </object>
234349 <int key="connectionID">16</int>
235350 </object>
351+ <object class="IBConnectionRecord">
352+ <object class="IBBindingConnection" key="connection">
353+ <string key="label">value: progressTime</string>
354+ <reference key="source" ref="129281907"/>
355+ <reference key="destination" ref="1001"/>
356+ <object class="NSNibBindingConnector" key="connector">
357+ <reference key="NSSource" ref="129281907"/>
358+ <reference key="NSDestination" ref="1001"/>
359+ <string key="NSLabel">value: progressTime</string>
360+ <string key="NSBinding">value</string>
361+ <string key="NSKeyPath">progressTime</string>
362+ <int key="NSNibBindingConnectorVersion">2</int>
363+ </object>
364+ </object>
365+ <int key="connectionID">24</int>
366+ </object>
367+ <object class="IBConnectionRecord">
368+ <object class="IBBindingConnection" key="connection">
369+ <string key="label">displayPatternValue1: count</string>
370+ <reference key="source" ref="865304595"/>
371+ <reference key="destination" ref="1001"/>
372+ <object class="NSNibBindingConnector" key="connector" id="621183444">
373+ <reference key="NSSource" ref="865304595"/>
374+ <reference key="NSDestination" ref="1001"/>
375+ <string key="NSLabel">displayPatternValue1: count</string>
376+ <string key="NSBinding">displayPatternValue1</string>
377+ <string key="NSKeyPath">count</string>
378+ <object class="NSDictionary" key="NSOptions">
379+ <string key="NS.key.0">NSDisplayPattern</string>
380+ <string key="NS.object.0">%{value1}@/%{value2}@</string>
381+ </object>
382+ <int key="NSNibBindingConnectorVersion">2</int>
383+ </object>
384+ </object>
385+ <int key="connectionID">28</int>
386+ </object>
387+ <object class="IBConnectionRecord">
388+ <object class="IBBindingConnection" key="connection">
389+ <string key="label">displayPatternValue2: amount</string>
390+ <reference key="source" ref="865304595"/>
391+ <reference key="destination" ref="1001"/>
392+ <object class="NSNibBindingConnector" key="connector">
393+ <reference key="NSSource" ref="865304595"/>
394+ <reference key="NSDestination" ref="1001"/>
395+ <string key="NSLabel">displayPatternValue2: amount</string>
396+ <string key="NSBinding">displayPatternValue2</string>
397+ <string key="NSKeyPath">amount</string>
398+ <object class="NSDictionary" key="NSOptions">
399+ <string key="NS.key.0">NSDisplayPattern</string>
400+ <string key="NS.object.0">%{value1}@/%{value2}@</string>
401+ </object>
402+ <reference key="NSPreviousConnector" ref="621183444"/>
403+ <int key="NSNibBindingConnectorVersion">2</int>
404+ </object>
405+ </object>
406+ <int key="connectionID">29</int>
407+ </object>
408+ <object class="IBConnectionRecord">
409+ <object class="IBBindingConnection" key="connection">
410+ <string key="label">hidden: amount</string>
411+ <reference key="source" ref="865304595"/>
412+ <reference key="destination" ref="1001"/>
413+ <object class="NSNibBindingConnector" key="connector">
414+ <reference key="NSSource" ref="865304595"/>
415+ <reference key="NSDestination" ref="1001"/>
416+ <string key="NSLabel">hidden: amount</string>
417+ <string key="NSBinding">hidden</string>
418+ <string key="NSKeyPath">amount</string>
419+ <object class="NSDictionary" key="NSOptions">
420+ <string key="NS.key.0">NSValueTransformerName</string>
421+ <string key="NS.object.0">NSNegateBoolean</string>
422+ </object>
423+ <int key="NSNibBindingConnectorVersion">2</int>
424+ </object>
425+ </object>
426+ <int key="connectionID">31</int>
427+ </object>
236428 </object>
237429 <object class="IBMutableOrderedSet" key="objectRecords">
238430 <object class="NSArray" key="orderedObjects">
@@ -280,7 +472,9 @@
280472 <reference ref="751752688"/>
281473 <reference ref="404229335"/>
282474 <reference ref="795345144"/>
475+ <reference ref="865304595"/>
283476 <reference ref="298109841"/>
477+ <reference ref="129281907"/>
284478 </object>
285479 <reference key="parent" ref="1005"/>
286480 </object>
@@ -331,6 +525,43 @@
331525 <reference key="object" ref="474223137"/>
332526 <reference key="parent" ref="404229335"/>
333527 </object>
528+ <object class="IBObjectRecord">
529+ <int key="objectID">21</int>
530+ <reference key="object" ref="129281907"/>
531+ <object class="NSMutableArray" key="children">
532+ <bool key="EncodedWithXMLCoder">YES</bool>
533+ <reference ref="889304367"/>
534+ </object>
535+ <reference key="parent" ref="1006"/>
536+ </object>
537+ <object class="IBObjectRecord">
538+ <int key="objectID">22</int>
539+ <reference key="object" ref="889304367"/>
540+ <object class="NSMutableArray" key="children">
541+ <bool key="EncodedWithXMLCoder">YES</bool>
542+ <reference ref="337277413"/>
543+ </object>
544+ <reference key="parent" ref="129281907"/>
545+ </object>
546+ <object class="IBObjectRecord">
547+ <int key="objectID">23</int>
548+ <reference key="object" ref="337277413"/>
549+ <reference key="parent" ref="889304367"/>
550+ </object>
551+ <object class="IBObjectRecord">
552+ <int key="objectID">25</int>
553+ <reference key="object" ref="865304595"/>
554+ <object class="NSMutableArray" key="children">
555+ <bool key="EncodedWithXMLCoder">YES</bool>
556+ <reference ref="632324638"/>
557+ </object>
558+ <reference key="parent" ref="1006"/>
559+ </object>
560+ <object class="IBObjectRecord">
561+ <int key="objectID">26</int>
562+ <reference key="object" ref="632324638"/>
563+ <reference key="parent" ref="865304595"/>
564+ </object>
334565 </object>
335566 </object>
336567 <object class="NSMutableDictionary" key="flattenedProperties">
@@ -345,6 +576,12 @@
345576 <string>1.NSWindowTemplate.visibleAtLaunch</string>
346577 <string>10.IBPluginDependency</string>
347578 <string>2.IBPluginDependency</string>
579+ <string>21.IBPluginDependency</string>
580+ <string>22.IBPluginDependency</string>
581+ <string>23.IBDateFormatterBehaviorMetadataKey</string>
582+ <string>23.IBPluginDependency</string>
583+ <string>25.IBPluginDependency</string>
584+ <string>26.IBPluginDependency</string>
348585 <string>4.IBPluginDependency</string>
349586 <string>5.IBPluginDependency</string>
350587 <string>6.IBPluginDependency</string>
@@ -364,6 +601,12 @@
364601 <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
365602 <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
366603 <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
604+ <integer value="1"/>
605+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
606+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
607+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
608+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
609+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
367610 <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
368611 <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
369612 <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
@@ -382,7 +625,7 @@
382625 <reference key="dict.values" ref="1002"/>
383626 </object>
384627 <nil key="sourceID"/>
385- <int key="maxID">16</int>
628+ <int key="maxID">31</int>
386629 </object>
387630 <object class="IBClassDescriber" key="IBDocument.Classes">
388631 <object class="NSMutableArray" key="referencedPartialClassDescriptions">
--- a/BathyScapheDataConverter/BSCDProgressPanelController.h
+++ b/BathyScapheDataConverter/BSCDProgressPanelController.h
@@ -11,9 +11,13 @@
1111 @interface BSCDProgressPanelController : NSWindowController
1212
1313 @property BOOL inProgress;
14+@property NSUInteger amount;
15+@property NSUInteger count;
1416 @property (retain) NSString *label;
1517 @property (retain) NSString *message;
1618
19+@property (retain) NSDate *progressTime;
20+
1721 - (IBAction)cancel:(id)sender;
1822
1923 @end
--- a/BathyScapheDataConverter/BSCDProgressPanelController.m
+++ b/BathyScapheDataConverter/BSCDProgressPanelController.m
@@ -11,9 +11,13 @@
1111 @implementation BSCDProgressPanelController
1212
1313 @synthesize inProgress = _inProgress;
14+@synthesize amount = _amount;
15+@synthesize count = _count;
1416 @synthesize label = _label;
1517 @synthesize message = _message;
1618
19+@synthesize progressTime = _progressTime;
20+
1721 - (id)init
1822 {
1923 return [self initWithWindowNibName:@"BSCDProgressPanel"];
@@ -29,6 +33,13 @@
2933 return self;
3034 }
3135
36+- (NSWindow *)window
37+{
38+ NSWindow *window = [super window];
39+ [window center];
40+ return window;
41+}
42+
3243 - (IBAction)cancel:(id)sender
3344 {
3445 [NSApp abortModal];
--- a/BathyScapheDataConverter/BSDCAppDelegate.m
+++ b/BathyScapheDataConverter/BSDCAppDelegate.m
@@ -13,6 +13,10 @@
1313 #import "BSCDProgressPanelController.h"
1414
1515
16+#import "BSBoardInformationObject.h"
17+#import "BSThreadInformationObject.h"
18+
19+
1620 @implementation BSDCAppDelegate
1721
1822 @synthesize window = _window;
@@ -27,7 +31,7 @@
2731 {
2832 // Insert code here to initialize your application
2933 self.cdManager = [BSCoreDataManager defaultManager];
30- [DatabaseManager defaultManager];
34+ [DatabaseManager setupDatabase];
3135 }
3236
3337
@@ -61,18 +65,104 @@
6165 return bathyscapheSupportFolderPath;
6266 }
6367
68+- (void)setTimeToPanel:(BSCDProgressPanelController *)panel since:(NSDate *)date
69+{
70+ NSDate *now = [NSDate dateWithTimeIntervalSinceNow:0.0];
71+ panel.progressTime = [NSDate dateWithTimeIntervalSince1970:[now timeIntervalSinceDate:date] - [[NSTimeZone systemTimeZone] secondsFromGMT]];
72+}
6473 - (IBAction)convertToSQLite:(id)sender
6574 {
75+ NSDate *startTime = [NSDate dateWithTimeIntervalSinceNow:0.0];
76+
6677 BSCDProgressPanelController *panel = [[BSCDProgressPanelController alloc] init];
78+ [self setTimeToPanel:panel since:startTime];
79+ panel.label = @"Convert from CoreData to SQLite data";
80+ panel.message = @"Converting data ...";
6781
6882 NSModalSession session = [NSApp beginModalSessionForWindow:panel.window];
6983
70- while( ([NSApp runModalSession:session] == NSRunContinuesResponse) ) {
71- sleep(1);
72- NSLog(@"hoge");
84+ if( ([NSApp runModalSession:session] != NSRunContinuesResponse) ) goto finish;
85+
86+ BSCoreDataManager *cdm = [BSCoreDataManager defaultManager];
87+ NSArray *boards = [cdm fetchDataForEntityName:@"BoardInformation" predicate:nil];
88+ [self setTimeToPanel:panel since:startTime];
89+
90+ DatabaseManager *dm = [DatabaseManager defaultManager];
91+ [self setTimeToPanel:panel since:startTime];
92+
93+ NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
94+ panel.message = @"Converting board informations ...";
95+ panel.amount = [boards count];
96+ for(BSBoardInformationObject *board in boards) {
97+ [self setTimeToPanel:panel since:startTime];
98+ if( ([NSApp runModalSession:session] != NSRunContinuesResponse) ) goto finish;
99+
100+ panel.count++;
101+ if(NSNotFound != [dm boardIDForURLString:board.boardURL]) {
102+ NSLog(@"Duplicate board url (%@)", board.boardURL);
103+ continue;
104+ }
105+
106+ [dm registerBoardName:board.boardName URLString:board.boardURL];
73107 }
108+ panel.amount = 0;
109+ panel.count = 0;
110+ [pool release];
111+ [self setTimeToPanel:panel since:startTime];
112+
113+ panel.message = @"Converting board histories ...";
114+
115+
116+ [self setTimeToPanel:panel since:startTime];
117+ pool = [[NSAutoreleasePool alloc] init];
118+ panel.message = @"Converting thread informations ...";
119+ for(BSBoardInformationObject *board in boards) {
120+ [self setTimeToPanel:panel since:startTime];
121+ if( ([NSApp runModalSession:session] != NSRunContinuesResponse) ) goto finish;
122+
123+ NSUInteger boardID = [dm boardIDForURLString:board.boardURL];
124+ NSSet *threads = board.threads;
125+ panel.amount = [threads count];
126+ for(BSThreadInformationObject *thread in threads) {
127+ NSAutoreleasePool *pool2 = [[NSAutoreleasePool alloc] init];
128+ [self setTimeToPanel:panel since:startTime];
129+ panel.count++;
130+ panel.message = [NSString stringWithFormat:@"Converting thread informations ...\n%@", board.boardName];
131+
132+ if( ([NSApp runModalSession:session] != NSRunContinuesResponse) ) {
133+ [pool2 release];
134+ goto finish;
135+ }
136+
137+ [dm insertThreadOfIdentifier:thread.threadID
138+ title:thread.threadName
139+ count:[thread.numberOfAll integerValue]
140+ date:thread.modifiedDate
141+ isDatOchi:[thread.isDatOchi boolValue]
142+ atBoard:boardID];
143+ if(thread.lastWrittenDate) {
144+ [dm setLastWriteDate:thread.lastWrittenDate
145+ atBoardID:boardID
146+ threadIdentifier:thread.threadID];
147+ }
148+
149+ // number of read
150+
151+ // label
152+
153+ [pool2 release];
154+ }
155+ panel.amount = 0;
156+ panel.count = 0;
157+ }
158+
159+
160+ // Fav
74161
162+finish:
163+ [pool release];
75164 [NSApp endModalSession:session];
165+ [panel.window close];
76166 [panel release];
77167 }
78168