• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Making a custom tabbed view control. Need suggestions.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Making a custom tabbed view control. Need suggestions. (From: malcom <email@hidden>)

  • Prev by Date: Re: multithread strange lockups in 10.3.9 and not tiger (followup)
  • Next by Date: Re: NSURLDownload and Modal Dialog
  • Previous by thread: Re: Making a custom tabbed view control. Need suggestions.
  • Next by thread: Re: Making a custom tabbed view control. Need suggestions.
  • Index(es):
    • Date
    • Thread