Re: A question about Tabviews and tabview items
Re: A question about Tabviews and tabview items
- Subject: Re: A question about Tabviews and tabview items
- From: Sean Murphy <email@hidden>
- Date: Mon, 14 Apr 2008 00:26:33 -0400
On Apr 13, 2008, at 6:24 PM, Development wrote:
Is it possible to create a tabview who's tabviewitems have a custom
look, For instance, the label is horizontal when the tabs are on the
side, or can have icons? If so could I get a pointer to some info as
I cant seem to find any.
Rather than subclassing NSTabView (since it does not really expose any
mechanism to override tab drawing), custom tabs can be implemented by
hiding the NSTabView's tab buttons and utilizing a completely separate
custom "tab bar" view containing your buttons. The custom view would
then oversee the actual NSTabView's selection, set as its delegate to
monitor outside selection changes, and would itself switch to the
proper NSTabViewItems when clicked.
For some examples of this approach, take a look at what we do in
Camino: <http://mxr.mozilla.org/seamonkey/source/camino/src/browser/BrowserTabBarView.mm
>
And see the excellent PSMTabBarControl:
<http://code.google.com/p/maccode/source/browse/trunk/Utilities/PSMTabBarControl/source/
>
-Murph
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden