diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-16 15:08:49 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-16 15:08:49 -0400 |
| commit | 6b08a2b18f9c5f0ddc01a37e2cf26fa7bdf9d98e (patch) | |
| tree | cbec9d83a0302928dab0855cd9daa87720d56ac1 /new/darwin/tab.m | |
| parent | 946b3ea34228e92eb39b1be587ede058d8942e34 (diff) | |
Fixed the OS X build, including warnings. It works. I'm still a bit unhappy about the way these backends are turning out...
Diffstat (limited to 'new/darwin/tab.m')
| -rw-r--r-- | new/darwin/tab.m | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/new/darwin/tab.m b/new/darwin/tab.m index 98dd733..b84ee9a 100644 --- a/new/darwin/tab.m +++ b/new/darwin/tab.m @@ -15,7 +15,7 @@ { // TODO free all tabs explicitly if (uiDarwinControlFreeWhenAppropriate(uiControl(self.uiT), [self superview])) - self.uiC = NULL; + self.uiT = NULL; [super viewDidMoveToSuperview]; } @@ -55,8 +55,10 @@ uiTab *uiNewTab(void) uiTab *t; uiNSTabView *tv; + t = uiNew(uiTab); + uiDarwinNewControl(uiControl(t), [uiNSTabView class], NO, NO); - tv = (uiNSTabView *) uiControlHandle(c); + tv = (uiNSTabView *) uiControlHandle(uiControl(t)); // also good for NSTabView (same selector and everything) setStandardControlFont((NSControl *) tv); |
