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 142b2db9f5
commit 425ede5288
3 changed files with 7 additions and 2 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;