Improved Cib Support.

Reviewed by ross.
This commit is contained in:
Francisco Ryan Tolmasky I
2008-09-19 20:19:08 -07:00
parent d183f6c434
commit a10058fc7f
9 changed files with 51 additions and 13 deletions
+6 -6
View File
@@ -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;
}
/*