From 84297ad7e13d3f10e967358ad10e286e9e193584 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 4 Aug 2014 17:07:06 -0400 Subject: Cleaned up Mac OS X Tab code from the previous commit. --- redo/tab_darwin.m | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-) (limited to 'redo/tab_darwin.m') diff --git a/redo/tab_darwin.m b/redo/tab_darwin.m index 7697e26..a143934 100644 --- a/redo/tab_darwin.m +++ b/redo/tab_darwin.m @@ -7,32 +7,12 @@ #define toNSTabView(x) ((NSTabView *) (x)) #define toNSView(x) ((NSView *) (x)) -@interface goTabView : NSTabView { -@public - void *gotab; -} -@end - -@implementation goTabView - -- (void)setFrame:(NSRect)r -{ - NSRect content; - - [super setFrame:r]; - content = [self contentRect]; - tabResized(self->gotab, (intptr_t) content.size.width, (intptr_t) content.size.height); -} - -@end - -id newTab(void *gotab) +id newTab(void) { - goTabView *t; + NSTabView *t; - t = [[goTabView alloc] initWithFrame:NSMakeRect(0, 0, 100, 100)]; + t = [[NSTabView alloc] initWithFrame:NSMakeRect(0, 0, 100, 100)]; setStandardControlFont((id) t); // safe; same selector provided by NSTabView - t->gotab = gotab; return (id) t; } -- cgit v1.2.3