Re: NSTabView like PB.
Re: NSTabView like PB.
- Subject: Re: NSTabView like PB.
- From: Andy Lee <email@hidden>
- Date: Fri, 1 Mar 2002 22:54:55 -0500
To answer my own musing: rotating the tab view (with appropriate translation of the origin before and after) does not quite work, at least the way I tried just now. Everything is drawn sideways *except* the bitmaps that are used to draw the tabs (and some other bits), so you get an unfortunate blotchy effect. The tabs do work in this vertical mode -- you can click to switch between them -- they just look horrible. If there is some trick to fix this, that would be great!
To answer Anders's question #2 (the first #2, that is ;)): I don't know, but in the IB inspector for NSTabViews, you may have noticed a pulldown menu called "Direction" under the "Has Tabs" radio button. Unfortunately, the pulldown is disabled, but the selected item is "Top", so hopefully we will see "Bottom", "Left", and "Right" options in IB soon, with corresponding changes to NSTabView API.
--Andy
At 9:18 PM -0500 3/1/02, Andy Lee wrote:
>
I wonder if this would work: rotate the coordinate system of the NSTabView by 90 degrees, then rotate each of the content views of the tabs by 90 degrees the other way.
>
>
See the various rotation methods in NSView, in particular -setBoundsRotation:.
>
>
--Andy
>
>
At 9:06 PM +0000 3/1/02, Anders Bergman wrote:
>
>Hi,
>
>I'm just starting to learn Cocoa...
>
>
>
>One control I need is the vertical tabs like the ones in PB.
>
>When I searched the archives for info on NSTabView I read this comment by
>
>John Hornkvist:
>
>>On the other hand, they should be fairly simply to do.
>
>>Create a cell class for the "tabs".
>
>>Reuse NSSplitView and NSTabView, and an NSMatrix for the tab cells.
>
>
>
>My first questions are:
>
>
>
>1. Any possibility that the other directions will be functional in the next
>
>update?
>
>
>
>2. How do I render the aqua look for the tabs in a custom cell?
>
> Or, how does one implement custom controls with the correct aqua
>
>appearance?
>
>
>
>2. How is the sliding panes implemented in PB?
>
>
>
>
>
>Thanks,
>
>Anders Bergman
_______________________________________________
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.