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:
parent
5fa0950112
commit
672efd5246
|
@ -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.
|
||||
|
|
|
@ -81,5 +81,5 @@ void windowHide(id win)
|
|||
|
||||
void windowClose(id win)
|
||||
{
|
||||
// TODO
|
||||
[toNSWindow(win) close];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue