Merge branch 'master' of git@github.com:280north/cappuccino

This commit is contained in:
Francisco Ryan Tolmasky I committed 2009-08-24 23:04:19 -07:00
commit abc1c6f2db
1 file changed
+6 -5
+6 -5
View File
@@ -275,9 +275,7 @@ CPRunContinuesResponse = -1002;
if ([filename length])
{
[self _openFile:filename];
needsUntitled = NO;
needsUntitled = ![self _openFile:filename];
}
if (needsUntitled && [_delegate respondsToSelector: @selector(applicationShouldOpenUntitledFile:)])
@@ -756,9 +754,12 @@ CPRunContinuesResponse = -1002;
return _namedArgs;
}
- (void)_openFile:(CPString)aFilename
- (BOOL)_openFile:(CPString)aFilename
{
[_documentController openDocumentWithContentsOfURL:aFilename display:YES error:NULL];
if (_delegate && [_delegate respondsToSelector:@selector(application:openFile:)])
return [_delegate application:self openFile:aFilename];
else
return [_documentController openDocumentWithContentsOfURL:aFilename display:YES error:NULL];
}
@end