Not possible to create tab view from code (Was: NSPro UI clone?)
Not possible to create tab view from code (Was: NSPro UI clone?)
- Subject: Not possible to create tab view from code (Was: NSPro UI clone?)
- From: j o a r <email@hidden>
- Date: Mon, 5 Jan 2004 14:20:48 +0100
I do that regularly. What's not working for you?
- (NSTabView *) tabView
{
NSSize mySize = [self frame].size;
NSRect tabViewRect = NSMakeRect(-xOffset, -yOffset, (mySize.width +
(2 * xOffset)), (mySize.height + yOffset));
NSTabView *tabView = [[[NSTabView alloc] initWithFrame:
tabViewRect] autorelease];
[tabView setControlSize: NSSmallControlSize];
[tabView setAutoresizingMask: (NSViewWidthSizable |
NSViewHeightSizable)];
[tabView setMenu: [self contextualMenu]];
[tabView setFont: [NSFont smallSystemFont]];
return tabView;
}
j o a r
On 2004-01-05, at 11.33, Stephane Sudre wrote:
>
This reminds me I need to file a bug report on the AppKit because you
>
can't create a NSTabView with just code. I thought it was a problem
>
with the way I was dealing with the ProKit classes but it's not
>
working either with the standard AppKit.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.