Fixed bug -- save and open panel would return NSOKButton on abort.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5427 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 1999-12-09 05:01:26 +00:00
parent 89dbeea092
commit 0e76deeaa6

View file

@ -1,3 +1,13 @@
Thu Dec 9 05:47:09 1999 Nicola Pero <n.pero@mi.flashnet.it>
* Source/NSSavePanel.m ([-runModalForDirectory:path:filename]),
([-ok:]), ([-cancel:]): There was a nice bug here: when the panel
was aborted, NSOKButton was returned! The reason is that by
chance NSRunAbortedResponse == NSOKButton (they are defined in two
different enums). I changed the way we handle return codes; now
the panel returns NSCancelButton on abort.
* Headers/AppKit/NSSavePanel.h: Added ivar _OKButtonPressed.
Thu Dec 9 03:12:16 1999 Nicola Pero <n.pero@mi.flashnet.it>
* Source/NSMatrix.m ([-keyDown:]): Trivial implementation to allow