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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to