Disable directory selection in open panels presented by

NSDocumentController, which is useless since document file packages
are shown as plain files in the panel.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30516 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Wolfgang Lux 2010-05-31 22:34:05 +00:00
parent 1131d859de
commit 128a121bc8
2 changed files with 8 additions and 0 deletions

View file

@ -743,6 +743,8 @@ TypeInfoForHumanReadableName (NSArray *types, NSString *typeName)
[openPanel setDirectory: [self currentDirectory]];
[openPanel setAllowsMultipleSelection: YES];
[openPanel setCanChooseFiles: YES];
[openPanel setCanChooseDirectories: NO];
return openPanel;
}