* Source/NSOpenPanel.m: Use the NSSavePanel _allowedFileTypes ivar

in place of the _fileTypes ivar. Replace calls to _setupForTypes: with
-setAllowedFileTypes:.
* Headers/AppKit/NSOpenPanel.h: Remove now unused _fileTypes ivar
* Source/NSSavePanel.m: Treat directories whose names have extensions
in the _allowedFileTypes array as file packages.
Previously, we only relied on -[NSWorkspace isFilePackageAtPath:],
to determine if a director is a file package, which only considers the
info.plists of installed applications.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33810 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Eric Wasylishen 2011-09-07 07:46:28 +00:00
parent c4048d4f4b
commit 19b6765e49
4 changed files with 17 additions and 21 deletions

View file

@ -45,7 +45,6 @@
@interface NSOpenPanel : NSSavePanel <NSCoding>
{
NSArray *_fileTypes;
BOOL _canChooseDirectories;
BOOL _canChooseFiles;
}