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: Development <email@hidden>
- Date: Mon, 14 Apr 2008 07:03:15 -0700
You and one other both made this suggestion to me and examining it, it
is certainly the easiest and most logical way to go. Which is probably
why it did not occur to me. Thank you very much for your suggestion, I
think this is the approach I will use.
On Apr 13, 2008, at 9:26 PM, Sean Murphy wrote:
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