mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 21:17:39 +00:00
[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:
parent
fc92649aa2
commit
2500131c69
2 changed files with 4 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue