From 425ede5288b50d140049f4e9e62d23189cd7d970 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 12 Apr 2015 16:00:09 -0400 Subject: [PATCH] Fixed Mac OS X tab page clearing. I'm really going to oneed to restructure the whole container system... --- new/container_darwin.m | 2 +- new/tab_darwin.m | 4 +++- new/window_darwin.m | 3 +++ 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 @property (assign) NSWindow *w; @property (assign) uiContainer *container;