From bd1db7d0989e58852281065e9f580eb982dd71ad 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... --- container_darwin.m | 2 +- tab_darwin.m | 4 +++- window_darwin.m | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/container_darwin.m b/container_darwin.m index be49659e..485298e8 100644 --- a/container_darwin.m +++ b/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/tab_darwin.m b/tab_darwin.m index deea075a..4e835b35 100644 --- a/tab_darwin.m +++ b/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/window_darwin.m b/window_darwin.m index 539b113c..39027b14 100644 --- a/window_darwin.m +++ b/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;