mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-16 05:24:30 +00:00
Improved Cib Support.
Reviewed by ross.
This commit is contained in:
1 parent
d183f6c434
commit
a10058fc7f
9 files changed
+51
-13
No files matched your search
@@ -100,18 +100,18 @@ var CPSharedDocumentController = nil;
|
||||
*/
|
||||
- (void)openUntitledDocumentOfType:(CPString)aType display:(BOOL)shouldDisplay
|
||||
{
|
||||
var document = [self makeUntitledDocumentOfType:aType error:nil];
|
||||
var theDocument = [self makeUntitledDocumentOfType:aType error:nil];
|
||||
|
||||
if (document)
|
||||
[self addDocument:document];
|
||||
if (theDocument)
|
||||
[self addDocument:theDocument];
|
||||
|
||||
if (shouldDisplay)
|
||||
{
|
||||
[document makeWindowControllers];
|
||||
[document showWindows];
|
||||
[theDocument makeWindowControllers];
|
||||
[theDocument showWindows];
|
||||
}
|
||||
|
||||
return document;
|
||||
return theDocument;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user