diff options
Diffstat (limited to 'redo/tab_darwin.m')
| -rw-r--r-- | redo/tab_darwin.m | 26 |
1 files changed, 3 insertions, 23 deletions
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; } |
