From 79ada1bdaa00a1dcebee65ab9bb77c51494d06a5 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 8 Aug 2014 20:05:36 -0400 Subject: [PATCH] Starting splitting out future plans from the TODOs again; this time: Group. --- redo/container.go | 2 +- redo/container_darwin.m | 1 - redo/future | 4 ++++ 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 redo/future 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