diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-04 17:07:06 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-04 17:07:06 -0400 |
| commit | 84297ad7e13d3f10e967358ad10e286e9e193584 (patch) | |
| tree | 152572455fa8a60143f072dae65465146d995dd8 /redo/tab_darwin.m | |
| parent | 1ba1f475ba1652d57ff569d42ede09944d74f2fb (diff) | |
Cleaned up Mac OS X Tab code from the previous commit.
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; } |
