GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: An OS X application to build a standalone web site as an export from my photo album.
Homepage: http://bleu.west.spy.net/~dustin/projects/photosync/
Clone URL: git://github.com/dustin/photosync.git
page building support
dustin (author)
Sat Feb 05 00:58:15 -0800 2005
commit  22b0e508916b49b5fb366d037e738878afe0ced8
tree    053cd549ad06f6cc1557fcb2987bce404ea6a8cb
parent  d0fd4950dae3dd2d940667ad49958b1676ed0176
...
18
19
20
 
 
21
...
18
19
20
21
22
23
0
@@ -18,4 +18,6 @@
0
 -(void)writePage:(NSString *)srcName dest:(NSString *)destPath
0
   tokens:(NSDictionary *)t;
0
 
0
+-(void)copyMiscFiles:(NSString *)destPath;
0
+
0
 @end
...
23
24
25
 
 
26
27
28
 
 
 
 
29
30
31
32
33
34
 
35
36
37
...
47
48
49
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
51
...
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
 
40
41
42
43
...
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
0
@@ -23,15 +23,21 @@
0
 -(void)writePage:(NSString *)srcName dest:(NSString *)destPath
0
   tokens:(NSDictionary *)t
0
 {
0
+ NSLog(@"Building a %@ for %@", srcName, destPath);
0
+
0
   NSAutoreleasePool *pool=[[NSAutoreleasePool alloc] init];
0
   NSBundle *mainBundle = [NSBundle mainBundle];
0
   NSString *path = [mainBundle pathForResource:srcName ofType:@"html"];
0
+ if(path == nil) {
0
+ [NSException raise:@"Missing Resource"
0
+ format:@"Can't get %@ of type html", srcName];
0
+ }
0
   NSString *srcStr=[[NSString alloc] initWithContentsOfFile:path];
0
   NSMutableString *str=[[NSMutableString alloc]
0
     initWithCapacity:[srcStr length]];
0
   [str setString: srcStr];
0
   [srcStr release];
0
-
0
+
0
   NSEnumerator *e=[t keyEnumerator];
0
   id key=nil;
0
   while(key = [e nextObject]) {
0
@@ -47,5 +53,28 @@
0
   [pool release];
0
 }
0
 
0
+-(void)copyMiscFiles:(NSString *)destPath
0
+{
0
+ NSAutoreleasePool *pool=[[NSAutoreleasePool alloc] init];
0
+ NSBundle *mainBundle = [NSBundle mainBundle];
0
+ NSFileManager *fm=[NSFileManager defaultManager];
0
+
0
+ NSString *cssSrc=[mainBundle pathForResource:@"style" ofType:@"css"];
0
+ NSString *cssDest=[NSString stringWithFormat:@"%@/style.css", destPath];
0
+ NSLog(@"Copying %@ to %@", cssSrc, cssDest);
0
+ [fm copyPath:cssSrc toPath:cssDest handler:nil];
0
+
0
+ NSString *jsSrc=[mainBundle pathForResource:@"style" ofType:@"css"];
0
+ NSString *jsDest=[NSString stringWithFormat:@"%@/style.css", destPath];
0
+ NSLog(@"Copying %@ to %@", jsSrc, jsDest);
0
+ [fm copyPath:jsSrc toPath:jsDest handler:nil];
0
+
0
+ NSString *srchSrc=[mainBundle pathForResource:@"search" ofType:@"html"];
0
+ NSString *srchDest=[NSString stringWithFormat:@"%@/search.html", destPath];
0
+ NSLog(@"Copying %@ to %@", jsSrc, jsDest);
0
+ [fm copyPath:srchSrc toPath:srchDest handler:nil];
0
+
0
+ [pool release];
0
+}
0
 
0
 @end
...
166
167
168
 
 
 
 
 
 
169
170
171
...
305
306
307
 
 
 
 
 
308
309
310
...
328
329
330
 
331
332
333
...
520
521
522
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
523
524
525
...
166
167
168
169
170
171
172
173
174
175
176
177
...
311
312
313
314
315
316
317
318
319
320
321
...
339
340
341
342
343
344
345
...
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
0
@@ -166,6 +166,12 @@
0
     };
0
     29B97317FDCFA39411CA2CEA = {
0
       children = (
0
+ DA8FDF1807B4BBB400D5B6F7,
0
+ DA8FDF1907B4BBB400D5B6F7,
0
+ DA8FDF1A07B4BBB400D5B6F7,
0
+ DA8FDF1B07B4BBB400D5B6F7,
0
+ DA8FDF1C07B4BBB400D5B6F7,
0
+ DA8FDF1D07B4BBB400D5B6F7,
0
         DA8FDEB407B4818300D5B6F7,
0
         DA3659BC07B0A1F700FBB3FF,
0
         8D1107310486CEB800E47090,
0
@@ -305,6 +311,11 @@
0
         DA12B7F507B36D6F005AA180,
0
         DA8FDEB507B4818300D5B6F7,
0
         DA8FDEBA07B481DE00D5B6F7,
0
+ DA8FDF1E07B4BBB400D5B6F7,
0
+ DA8FDF1F07B4BBB400D5B6F7,
0
+ DA8FDF2007B4BBB400D5B6F7,
0
+ DA8FDF2207B4BBB400D5B6F7,
0
+ DA8FDF2307B4BBB400D5B6F7,
0
       );
0
       isa = PBXResourcesBuildPhase;
0
       runOnlyForDeploymentPostprocessing = 0;
0
@@ -328,6 +339,7 @@
0
         DAF071CD07B343B9006FA850,
0
         DA12B7F607B36D6F005AA180,
0
         DA8FDEBB07B481DE00D5B6F7,
0
+ DA8FDF2107B4BBB400D5B6F7,
0
       );
0
       isa = PBXSourcesBuildPhase;
0
       runOnlyForDeploymentPostprocessing = 0;
0
@@ -520,6 +532,96 @@
0
       settings = {
0
       };
0
     };
0
+ DA8FDF1807B4BBB400D5B6F7 = {
0
+ fileEncoding = 30;
0
+ isa = PBXFileReference;
0
+ lastKnownFileType = text.html;
0
+ name = index.html;
0
+ path = content/index.html;
0
+ refType = 4;
0
+ sourceTree = "<group>";
0
+ };
0
+ DA8FDF1907B4BBB400D5B6F7 = {
0
+ fileEncoding = 30;
0
+ isa = PBXFileReference;
0
+ lastKnownFileType = text.html;
0
+ name = month.html;
0
+ path = content/month.html;
0
+ refType = 4;
0
+ sourceTree = "<group>";
0
+ };
0
+ DA8FDF1A07B4BBB400D5B6F7 = {
0
+ fileEncoding = 30;
0
+ isa = PBXFileReference;
0
+ lastKnownFileType = text.html;
0
+ name = search.html;
0
+ path = content/search.html;
0
+ refType = 4;
0
+ sourceTree = "<group>";
0
+ };
0
+ DA8FDF1B07B4BBB400D5B6F7 = {
0
+ fileEncoding = 30;
0
+ isa = PBXFileReference;
0
+ lastKnownFileType = sourcecode.javascript;
0
+ name = searchfun.js;
0
+ path = content/searchfun.js;
0
+ refType = 4;
0
+ sourceTree = "<group>";
0
+ };
0
+ DA8FDF1C07B4BBB400D5B6F7 = {
0
+ fileEncoding = 30;
0
+ isa = PBXFileReference;
0
+ lastKnownFileType = text;
0
+ name = style.css;
0
+ path = content/style.css;
0
+ refType = 4;
0
+ sourceTree = "<group>";
0
+ };
0
+ DA8FDF1D07B4BBB400D5B6F7 = {
0
+ fileEncoding = 30;
0
+ isa = PBXFileReference;
0
+ lastKnownFileType = text.html;
0
+ name = year.html;
0
+ path = content/year.html;
0
+ refType = 4;
0
+ sourceTree = "<group>";
0
+ };
0
+ DA8FDF1E07B4BBB400D5B6F7 = {
0
+ fileRef = DA8FDF1807B4BBB400D5B6F7;
0
+ isa = PBXBuildFile;
0
+ settings = {
0
+ };
0
+ };
0
+ DA8FDF1F07B4BBB400D5B6F7 = {
0
+ fileRef = DA8FDF1907B4BBB400D5B6F7;
0
+ isa = PBXBuildFile;
0
+ settings = {
0
+ };
0
+ };
0
+ DA8FDF2007B4BBB400D5B6F7 = {
0
+ fileRef = DA8FDF1A07B4BBB400D5B6F7;
0
+ isa = PBXBuildFile;
0
+ settings = {
0
+ };
0
+ };
0
+ DA8FDF2107B4BBB400D5B6F7 = {
0
+ fileRef = DA8FDF1B07B4BBB400D5B6F7;
0
+ isa = PBXBuildFile;
0
+ settings = {
0
+ };
0
+ };
0
+ DA8FDF2207B4BBB400D5B6F7 = {
0
+ fileRef = DA8FDF1C07B4BBB400D5B6F7;
0
+ isa = PBXBuildFile;
0
+ settings = {
0
+ };
0
+ };
0
+ DA8FDF2307B4BBB400D5B6F7 = {
0
+ fileRef = DA8FDF1D07B4BBB400D5B6F7;
0
+ isa = PBXBuildFile;
0
+ settings = {
0
+ };
0
+ };
0
     DAEA36B507B0D8CF00C4E690 = {
0
       fileEncoding = 30;
0
       isa = PBXFileReference;
...
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
...
151
152
153
154
155
156
157
158
159
160
 
161
162
163
 
164
165
166
...
37
38
39
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
41
42
...
118
119
120
 
 
 
121
122
123
 
124
125
126
 
127
128
129
130
0
@@ -37,39 +37,6 @@
0
   return name;
0
 }
0
 
0
--(void)checkPath
0
-{
0
- NSFileManager *fm=[NSFileManager defaultManager];
0
- NSString *yearDir=[[NSString alloc] initWithFormat:@"%@/pages/%d",
0
- [location destDir], [photo year]];
0
-
0
- BOOL isDir=NO;
0
- if([fm fileExistsAtPath:yearDir isDirectory:&isDir] && isDir) {
0
- // Already there
0
- } else {
0
- NSLog(@"Need to create %@", yearDir);
0
- if(![fm createDirectoryAtPath:yearDir attributes:nil]) {
0
- [NSException raise:@"CheckPath" format:@"Couldn't create dir %@",
0
- yearDir];
0
- }
0
- }
0
-
0
- NSString *monthDir=[[NSString alloc] initWithFormat:@"%@/pages/%d/%d",
0
- [location destDir], [photo year], [photo month]];
0
- if([fm fileExistsAtPath:monthDir isDirectory:&isDir] && isDir) {
0
- // Already there
0
- } else {
0
- NSLog(@"Need to create %@", monthDir);
0
- if(![fm createDirectoryAtPath:monthDir attributes:nil]) {
0
- [NSException raise:@"CheckPath" format:@"Couldn't create dir %@",
0
- monthDir];
0
- }
0
- }
0
-
0
- [yearDir release];
0
- [monthDir release];
0
-}
0
-
0
 -(void)fetch:(NSString *)u to:(NSString *)dest
0
 {
0
   NSURL *url=[[NSURL alloc] initWithString:u];
0
@@ -151,16 +118,13 @@
0
 
0
 -(void)run
0
 {
0
- // Start by figuring out what we need to do
0
- [self checkPath];
0
-
0
   // See if the images are there
0
   NSFileManager *fm=[NSFileManager defaultManager];
0
   NSString *normalFn=[[NSString alloc]
0
- initWithFormat:@"%@/pages/%d/%d/%d_normal.jpg",
0
+ initWithFormat:@"%@/pages/%04d/%02d/%d_normal.jpg",
0
       [location destDir], [photo year], [photo month], [photo imgId]];
0
   NSString *tnFn=[[NSString alloc]
0
- initWithFormat:@"%@/pages/%d/%d/%d_tn.jpg",
0
+ initWithFormat:@"%@/pages/%04d/%02d/%d_tn.jpg",
0
       [location destDir], [photo year], [photo month], [photo imgId]];
0
 
0
   if(![fm fileExistsAtPath:normalFn]) {
...
9
10
11
 
12
13
14
...
130
131
132
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
133
134
135
...
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
 
 
 
168
169
170
...
9
10
11
12
13
14
15
...
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
...
332
333
334
 
 
 
 
 
 
 
 
 
 
 
 
 
 
335
336
337
338
339
340
0
@@ -9,6 +9,7 @@
0
 #import "SyncTask.h"
0
 #import "SyncSubTask.h"
0
 #import "PhotoSync.h"
0
+#import "PageWriter.h"
0
 
0
 @interface SyncTaskDelegate
0
 -(void)completedTask:(SyncTask *)task;
0
@@ -130,6 +131,186 @@
0
   [photoClient fetchIndexFrom: [location url] downloadDelegate:self];
0
 }
0
 
0
+-(void)ensureDir:(NSString *)path
0
+{
0
+ NSFileManager *fm=[NSFileManager defaultManager];
0
+ BOOL isDir=NO;
0
+ if([fm fileExistsAtPath:path isDirectory:&isDir] && isDir) {
0
+ NSLog(@"%@ exists", path);
0
+ } else {
0
+ NSLog(@"Creating pages dir");
0
+ if(![fm createDirectoryAtPath:path attributes:nil]) {
0
+ [NSException raise:@"CheckPath" format:@"Couldn't create dir %@",
0
+ path];
0
+ }
0
+ }
0
+}
0
+
0
+// Format for the index on the index page
0
+#define INDEX_INDEX_FMT \
0
+ @"<li><a href=\"pages/%@.html\">%@ (%d %@)</a></li>\n"
0
+// Format for the month list on a year page
0
+#define YEAR_MONTH_INDEX_FMT \
0
+ @"<li><a href=\"%@/%02d.html\">%02d (%d %@)</a></li>"
0
+// Format string for lines in the month index
0
+#define MONTH_IMG_INDEX_FMT \
0
+ @"<a href=\"%02d/%d.html\"><img alt=\"%d\" src=\"%02d/%d_tn.%@\"/></a>\n"
0
+
0
+-(void)writePages:(NSCountedSet *)yearSet months:(NSDictionary *)months
0
+{
0
+ PageWriter *pw=[PageWriter sharedInstance];
0
+ // Make array versions of the years so we can sort them
0
+ NSMutableArray *years=[[NSMutableArray alloc]
0
+ initWithCapacity:[yearSet count]];
0
+ NSEnumerator *e=[yearSet objectEnumerator];
0
+ id year=nil;
0
+ while(year = [e nextObject]) {
0
+ [years addObject: year];
0
+ }
0
+ [years sortUsingSelector:@selector(compare:)];
0
+
0
+ NSMutableString *indexIdx=[[NSMutableString alloc] initWithCapacity:256];
0
+ NSMutableString *yearIdx=[[NSMutableString alloc] initWithCapacity:256];
0
+ NSMutableString *monthIdx=[[NSMutableString alloc] initWithCapacity:256];
0
+ [indexIdx setString:@""];
0
+
0
+ e=[years objectEnumerator];
0
+ while(year = [e nextObject]) {
0
+ [yearIdx setString:@""];
0
+ NSString *yearDir=[[NSString alloc] initWithFormat:@"%@/pages/%@",
0
+ [location destDir], year];
0
+ NSString *yearFile=[[NSString alloc] initWithFormat:@"%@/pages/%@.html",
0
+ [location destDir], year];
0
+ [self ensureDir:yearDir];
0
+
0
+ // Set up the index line
0
+ int yearCount=[yearSet countForObject: year];
0
+ [indexIdx appendFormat:INDEX_INDEX_FMT,
0
+ year, year, yearCount, (yearCount == 1 ? @"image":@"images")];
0
+
0
+ NSLog(@"OK, doing the months");
0
+ // Do the months
0
+ int i=0;
0
+ for(i=1; i<=12; i++) {
0
+ NSString *monthStr=[[NSString alloc] initWithFormat:@"%@/%02d",
0
+ year, i];
0
+ id monthList=[months objectForKey:monthStr];
0
+ if(monthList != nil) {
0
+ [monthIdx setString:@""];
0
+
0
+ // The index
0
+ [yearIdx appendFormat:YEAR_MONTH_INDEX_FMT,
0
+ year, i, i, [monthList count],
0
+ ([monthList count] == 1 ? @"image":@"images")];
0
+
0
+ NSString *monthDir=[[NSString alloc]
0
+ initWithFormat:@"%@/pages/%@/%02d",
0
+ [location destDir], year, i];
0
+ [self ensureDir:monthDir];
0
+ NSString *monthFile=[[NSString alloc]
0
+ initWithFormat:@"%@/pages/%@/%02d.html",
0
+ [location destDir], year, i];
0
+
0
+ // Images within a month
0
+ NSEnumerator *ye=[monthList objectEnumerator];
0
+ id photo=nil;
0
+ while(photo = [ye nextObject]) {
0
+ [monthIdx appendFormat:MONTH_IMG_INDEX_FMT,
0
+ i, [photo imgId], [photo imgId], i, [photo imgId],
0
+ [photo extension]];
0
+ }
0
+
0
+ NSDictionary *toks=[[NSDictionary alloc] initWithObjectsAndKeys:
0
+ monthIdx, @"IMGS",
0
+ year, @"YEAR",
0
+ [NSString stringWithFormat:@"%02d"], @"MONTH",
0
+ nil];
0
+
0
+ [pw writePage:@"month" dest:monthFile tokens:toks];
0
+
0
+ [toks release];
0
+ [monthFile release];
0
+ [monthDir release];
0
+ } else {
0
+ NSLog(@"No month %@", monthStr);
0
+ }
0
+ // month check
0
+ [monthStr release];
0
+ } // All possible months
0
+
0
+ NSDictionary *toks=[[NSDictionary alloc] initWithObjectsAndKeys:
0
+ year, @"YEAR",
0
+ yearIdx, @"MONTHS",
0
+ nil];
0
+ [pw writePage:@"year" dest:yearFile tokens:toks];
0
+ [toks release];
0
+
0
+ [yearDir release];
0
+ [yearFile release];
0
+ }
0
+
0
+ // Now write the final index file
0
+ NSString *idxFile=[[NSString alloc] initWithFormat:@"%@/index.html",
0
+ [location destDir]];
0
+ NSDictionary *toks=[[NSDictionary alloc] initWithObjectsAndKeys:
0
+ indexIdx, @"YEARS", nil];
0
+
0
+ [pw writePage:@"index" dest:idxFile tokens:toks];
0
+ [pw copyMiscFiles:[location destDir]];
0
+
0
+ [toks release];
0
+ [idxFile release];
0
+ [indexIdx release];
0
+ [yearIdx release];
0
+ [monthIdx release];
0
+ [years release];
0
+}
0
+
0
+-(void)setupPages
0
+{
0
+ NSLog(@"Setting up the main pages.");
0
+ NSString *pagesDir=[[NSString alloc] initWithFormat:@"%@/pages",
0
+ [location destDir]];
0
+ [self ensureDir:pagesDir];
0
+ NSCountedSet *yearSet=[[NSCountedSet alloc] initWithCapacity:50];
0
+ NSMutableDictionary *imgLists=[[NSMutableDictionary alloc]
0
+ initWithCapacity:500];
0
+
0
+ NSEnumerator *e=[[photoClient photos] objectEnumerator];
0
+ id photo=nil;
0
+ while(photo = [e nextObject]) {
0
+ NSString *year=[[NSString alloc] initWithFormat:@"%04d", [photo year]];
0
+ NSString *month=[[NSString alloc] initWithFormat:@"%04d/%02d",
0
+ [photo year], [photo month]];
0
+
0
+ [yearSet addObject: year];
0
+
0
+ NSMutableArray *imgList=[imgLists objectForKey:month];
0
+ if(imgList == nil) {
0
+ imgList=[[NSMutableArray alloc] initWithCapacity:128];
0
+ [imgLists setObject:imgList forKey:month];
0
+ }
0
+ [imgList addObject: photo];
0
+
0
+ [month release];
0
+ [year release];
0
+ }
0
+
0
+ // Now we're going to go through the values and sort them.
0
+ e=[imgLists objectEnumerator];
0
+ id imgList=nil;
0
+ while(imgList = [e nextObject]) {
0
+ [imgList sortUsingSelector:@selector(compare:)];
0
+ }
0
+
0
+ // Now that we have our structures, let's write out some pages
0
+ [self writePages:yearSet months:imgLists];
0
+
0
+ [imgLists release];
0
+ [yearSet release];
0
+ [pagesDir release];
0
+}
0
+
0
 - (void)downloadDidFinish:(NSURLDownload *)download
0
 {
0
   NSAutoreleasePool *pool=[[NSAutoreleasePool alloc] init];
0
@@ -151,20 +332,9 @@
0
     [sst release];
0
   }
0
   NSLog(@"Created %d tasks", [subTasks count]);
0
- BOOL isDir=YES;
0
- NSString *pagesDir=[[NSString alloc] initWithFormat:@"%@/pages",
0
- [location destDir]];
0
- NSFileManager *fm=[NSFileManager defaultManager];
0
- if([fm fileExistsAtPath:pagesDir isDirectory:&isDir] && isDir) {
0
- NSLog(@"%@ exists", pagesDir);
0
- } else {
0
- NSLog(@"Creating pages dir");
0
- if(![fm createDirectoryAtPath:pagesDir attributes:nil]) {
0
- [NSException raise:@"CheckPath" format:@"Couldn't create dir %@",
0
- pagesDir];
0
- }
0
- }
0
- [pagesDir release];
0
+
0
+ [self setupPages];
0
+
0
   [pool release];
0
   [self doNextTask:self];
0
 }

Comments

    No one has commented yet.