summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--new/container_darwin.m2
-rw-r--r--new/tab_darwin.m4
-rw-r--r--new/window_darwin.m3
3 files changed, 7 insertions, 2 deletions
diff --git a/new/container_darwin.m b/new/container_darwin.m
index be49659..485298e 100644
--- a/new/container_darwin.m
+++ b/new/container_darwin.m
@@ -16,7 +16,7 @@ uiLogObjCClassAllocations
- (void)viewDidMoveToSuperview
{
- if ([self superview] == nil)
+ if ([self superview] == destroyedControlsView)
if (self.uiChild != NULL) {
uiControlDestroy(self.uiChild);
self.uiChild = NULL;
diff --git a/new/tab_darwin.m b/new/tab_darwin.m
index deea075..4e835b3 100644
--- a/new/tab_darwin.m
+++ b/new/tab_darwin.m
@@ -1,7 +1,9 @@
// 12 april 2015
#import "uipriv_darwin.h"
-// TODO very margins against extra space around the tab
+// TODO
+// - verify margins against extra space around the tab
+// - free child containers properly
@interface uiNSTabView : NSTabView
@property uiControl *uiC;
diff --git a/new/window_darwin.m b/new/window_darwin.m
index 539b113..39027b1 100644
--- a/new/window_darwin.m
+++ b/new/window_darwin.m
@@ -1,6 +1,9 @@
// 6 april 2015
#import "uipriv_darwin.h"
+// TODO
+// - free chilld containers properly
+
@interface uiWindowDelegate : NSObject <NSWindowDelegate>
@property (assign) NSWindow *w;
@property (assign) uiContainer *container;