Fixed Mac OS X tab page clearing. I'm really going to oneed to restructure the whole container system...

This commit is contained in:
Pietro Gagliardi 2015-04-12 16:00:09 -04:00
parent f44094b4e4
commit bd1db7d098
3 changed files with 7 additions and 2 deletions

View File

@ -16,7 +16,7 @@ uiLogObjCClassAllocations
- (void)viewDidMoveToSuperview - (void)viewDidMoveToSuperview
{ {
if ([self superview] == nil) if ([self superview] == destroyedControlsView)
if (self.uiChild != NULL) { if (self.uiChild != NULL) {
uiControlDestroy(self.uiChild); uiControlDestroy(self.uiChild);
self.uiChild = NULL; self.uiChild = NULL;

View File

@ -1,7 +1,9 @@
// 12 april 2015 // 12 april 2015
#import "uipriv_darwin.h" #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 @interface uiNSTabView : NSTabView
@property uiControl *uiC; @property uiControl *uiC;

View File

@ -1,6 +1,9 @@
// 6 april 2015 // 6 april 2015
#import "uipriv_darwin.h" #import "uipriv_darwin.h"
// TODO
// - free chilld containers properly
@interface uiWindowDelegate : NSObject <NSWindowDelegate> @interface uiWindowDelegate : NSObject <NSWindowDelegate>
@property (assign) NSWindow *w; @property (assign) NSWindow *w;
@property (assign) uiContainer *container; @property (assign) uiContainer *container;