Skip to content

Commit d0480c8

Browse files
David CatmullDavid Catmull
David Catmull
authored and
David Catmull
committed
replace URLByAppendingPathComponent:isDirectory: (requires 10.7) with URLByAppendingPathComponent: (requires 10.6)
1 parent 347aeaa commit d0480c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PBWebController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ - (void) awakeFromNib
3737
[view setResourceLoadDelegate:self];
3838

3939
NSURL *resourceURL = [[[NSBundle mainBundle] resourceURL] URLByStandardizingPath];
40-
NSURL *baseURL = [[resourceURL URLByAppendingPathComponent:@"html/views" isDirectory:YES] URLByAppendingPathComponent:startFile isDirectory:YES];
40+
NSURL *baseURL = [[resourceURL URLByAppendingPathComponent:@"html/views"] URLByAppendingPathComponent:startFile];
4141

42-
NSURL *fileURL = [baseURL URLByAppendingPathComponent:@"index.html" isDirectory:NO];
42+
NSURL *fileURL = [baseURL URLByAppendingPathComponent:@"index.html"];
4343
[[view mainFrame] loadRequest:[NSURLRequest requestWithURL:fileURL]];
4444
}
4545

0 commit comments

Comments
 (0)