summaryrefslogtreecommitdiff
path: root/redo
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-07-20 13:01:46 -0400
committerPietro Gagliardi <[email protected]>2014-07-20 13:01:46 -0400
commit672efd5246dfb4ef28c5009ec6b0c680abbf0dba (patch)
tree52481683c9f7bc6f7dffeeb4002bed2d811b3cfb /redo
parent5fa0950112cae67fd3d8d2fcc4c1d625aeb39f6d (diff)
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.
Diffstat (limited to 'redo')
-rw-r--r--redo/window.go1
-rw-r--r--redo/window_darwin.m2
2 files changed, 1 insertions, 2 deletions
diff --git a/redo/window.go b/redo/window.go
index b138a48..2bb3784 100644
--- a/redo/window.go
+++ b/redo/window.go
@@ -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.
diff --git a/redo/window_darwin.m b/redo/window_darwin.m
index 71d4fae..ffa6110 100644
--- a/redo/window_darwin.m
+++ b/redo/window_darwin.m
@@ -81,5 +81,5 @@ void windowHide(id win)
void windowClose(id win)
{
- // TODO
+ [toNSWindow(win) close];
}