Adding a tabviewitem with code.
Adding a tabviewitem with code.
- Subject: Adding a tabviewitem with code.
- From: Stéphane Sudre <email@hidden>
- Date: Fri, 11 Jul 2003 18:36:09 +0200
There's something I must be missing.
I have an outlet to a NSTabView with one NSTabViewItem (identifier: 3,
label: @"Tab") created in IB.
I want to add 2 NSTabViewItem to this NSTabView.
I'm using this code:
tRect=[IBTabView_ contentRect];
tRect.origin=NSZeroPoint;
nView=[[NSView alloc] initWithFrame:tRect];
tTabViewItem=[[NSTabViewItem alloc] initWithIdentifier:@"1"];
[tTabViewItem setLabel:@"Tab"];
[tTabViewItem setView:nView];
[IBTabView_ addTabViewItem:tTabViewItem];
nView=[[NSView alloc] initWithFrame:tRect];
tTabViewItem=[[NSTabViewItem alloc] initWithIdentifier:@"2"];
[tTabViewItem setLabel:@"View"];
[tTabViewItem setView:nView];
[IBTabView_ addTabViewItem:tTabViewItem];
The result is that I still have only one NSTabViewItem "in" my
NSTabView.
Any idea?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.