Cleanuped up open/save panel.

Reviewed by me.
This commit is contained in:
Francisco Ryan Tolmasky I
2009-10-17 10:00:50 -07:00
parent 4a8a205ae2
commit fce91c7ad3
4 changed files with 31 additions and 88 deletions
+6 -6
View File
@@ -223,15 +223,15 @@ var CPSharedDocumentController = nil;
-(void)openDocument:(id)aSender
{
var openPanel = [CPOpenPanel openPanel];
[openPanel runModalForTypes:nil];//[@"nib", @"xib", @"cib"]];
var filenames = [openPanel filenames],
[openPanel runModal];
var URLs = [openPanel URLs],
index = 0,
count = [filenames count];
count = [URLs count];
for (; index < count; ++index)
[self openDocumentWithContentsOfURL:[CPURL URLWithString:filenames[index]] display:YES error:nil];
[self openDocumentWithContentsOfURL:[CPURL URLWithString:URLs[index]] display:YES error:nil];
}
// Managing Documents