Implemented Window.Close() on Mac OS X, settling both that TODO and the one about making sure Window.Close() works as documented on all platforms.

This commit is contained in:
Pietro Gagliardi 2014-07-20 13:01:46 -04:00
parent 5fa0950112
commit 672efd5246
2 changed files with 1 additions and 2 deletions

View File

@ -21,7 +21,6 @@ type Window interface {
// Any Controls within the Window are destroyed, and the Window itself is also destroyed.
// Attempting to use a Window after it has been closed results in undefined behavior.
// Close unconditionally closes the Window; it neither raises OnClosing nor checks for a return from OnClosing.
// TODO make sure the above happens on Mac OS X; it does on Windows and GTK+
Close()
// OnClosing registers an event handler that is triggered when the user clicks the Window's close button.

View File

@ -81,5 +81,5 @@ void windowHide(id win)
void windowClose(id win)
{
// TODO
[toNSWindow(win) close];
}