Re: Making a custom tabbed view control. Need suggestions.
Re: Making a custom tabbed view control. Need suggestions.
- Subject: Re: Making a custom tabbed view control. Need suggestions.
- From: glenn andreas <email@hidden>
- Date: Wed, 16 Nov 2005 10:06:22 -0600
On Nov 16, 2005, at 9:27 AM, malcom wrote:
Hi,
I've searched for a custom tabbed view control as like in Safari.
[snip]
Where can I start? What's the best way? Is possible to modify the
NSTabView control (and segment) to complain a total different style or
the best way is to make a total-new control from NSView?
It's possible, but not much fun (especially if you want different
metrics for things like borders or tab sizes).
The easier way is to use two views - and ordinary NSTabView set to be
"tabless" and then a separate custom NSView that draws the tab
segments (and sits right next to the tab view). Your custom view
would then just send messages to the tab view to change which tab is
shown (and can query it to determine which tab is shown to properly
highlight things). It's pretty straightforward and not too difficult...
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
Widgetarium | the quickest path to widgets
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden