[NSSavePanel -runModalForDirectory:file:]

[NSOpenPanel -runModalForDirectory:file:types:]
Moved functionality from NSOpenPanel to NSSavePanel:
the "ok" button is shown as enabled or not at the beginning depending
on whether the given file is valid.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10702 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Pierre-Yves Rivaille 2001-08-13 14:57:20 +00:00
parent fc92649aa2
commit 2500131c69
2 changed files with 4 additions and 8 deletions

View file

@ -697,6 +697,10 @@ static BOOL _gs_display_reading_progress = NO;
*/
_OKButtonPressed = NO;
[self browser: _browser
selectCellWithString: [[_browser selectedCell] stringValue]
inColumn: [_browser selectedColumn]];
[NSApp runModalForWindow: self];
if (_OKButtonPressed)