summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-08 20:05:36 -0400
committerPietro Gagliardi <[email protected]>2014-08-08 20:05:36 -0400
commit79ada1bdaa00a1dcebee65ab9bb77c51494d06a5 (patch)
treee78701e6701bd504e6a226a65f8c70b68c898134
parente1486f3cd1aec41c48916fca3158cc53c06fbd1d (diff)
Starting splitting out future plans from the TODOs again; this time: Group.
-rw-r--r--redo/container.go2
-rw-r--r--redo/container_darwin.m1
-rw-r--r--redo/future4
3 files changed, 5 insertions, 2 deletions
diff --git a/redo/container.go b/redo/container.go
index a7eb7f4..ec99055 100644
--- a/redo/container.go
+++ b/redo/container.go
@@ -26,7 +26,7 @@ type controlSizing interface {
}
// A container hosts a Control and resizes that Control based on changes in size to the parent Window.
-// container is used by Window, Tab, and [TODO implement] Group to contain and control their respective Controls.
+// container is used by Window and Tab to contain and control their respective Controls.
// Tab and Group use containers for their content; as such, their commitResize() functions should only change the size of the Tab and Group themselves, and have their containers do the real work.
// All containers must embed containerbase.
type containerbase struct {
diff --git a/redo/container_darwin.m b/redo/container_darwin.m
index e2b6113..0a598c6 100644
--- a/redo/container_darwin.m
+++ b/redo/container_darwin.m
@@ -12,7 +12,6 @@
// - NSTab resizing calls both -[setFrame:] and -[setFrameSIze:] on the current tab
// - NSTab switching tabs calls both -[setFrame:] and -[setFrameSize:] on the new tab
// so we just override setFrameSize:
-// (TODO NSBox)
// thanks to mikeash and JtRip in irc.freenode.net/#macdev
@interface goContainerView : NSView {
@public
diff --git a/redo/future b/redo/future
new file mode 100644
index 0000000..755ea4e
--- /dev/null
+++ b/redo/future
@@ -0,0 +1,4 @@
+Group
+ Mac OS X: NSBox
+ container.go: add Group to the list of controls in the description of container
+ container_darwin.m: figure out if our setFrameSize: thing applies to resizing the groupbox as well