What is the best approach for custom tab bar interface?

  • I need to have a tab style interface, but am not able to use the built in NSTabView because the style is not customizable.  Basically I need something similar in look to the Safari tabs, but on a VERTICAL direction.  At this point I am thinking about a custom NSView with CALayers for each tab element and then handling the MouseDown and MouseUp events to "capture" the button press.  Or is there another approach I can take?
  • Absolutely. Use an NSTabView, but set it to be tabless, and create your own control to change the selected tab.

    Regards

    Gideon
    On 09/04/2010, at 1:06 AM, Philip Mobley wrote:

    > I need to have a tab style interface, but am not able to use the built in NSTabView because the style is not customizable.  Basically I need something similar in look to the Safari tabs, but on a VERTICAL direction.  At this point I am thinking about a custom NSView with CALayers for each tab element and then handling the MouseDown and MouseUp events to "capture" the button press.  Or is there another approach I can take?
    >
  • On Apr 8, 2010, at 8:22 AM, Gideon King wrote:

    > Absolutely. Use an NSTabView, but set it to be tabless, and create your own control to change the selected tab.

    My question isn't how to get the Tabs to work, but the control which controls the tab switching.  =)

    > I need to have a tab style interface, but am not able to use the built in NSTabView because the style is not customizable.  Basically I need something similar in look to the Safari tabs, but on a VERTICAL direction.  At this point I am thinking about a custom NSView with CALayers for each tab element and then handling the MouseDown and MouseUp events to "capture" the button press.  Or is there another approach I can take?
  • Any control can tell the tab bar to switch the tabview ... or the tab
    bar itself...

    what was suggested was go tabless ... then have a button or any other
    control send a message to the tab bar to switch it's tab. Far easier
    to do this than to subclass the tab bar to display its tabs vertically.

    On Apr 8, 2010, at 1:10 PM, Philip Mobley wrote:

    > On Apr 8, 2010, at 8:22 AM, Gideon King wrote:
    >
    >> Absolutely. Use an NSTabView, but set it to be tabless, and create
    >> your own control to change the selected tab.
    >
    > My question isn't how to get the Tabs to work, but the control which
    > controls the tab switching.  =)
    >
    >> I need to have a tab style interface, but am not able to use the
    >> built in NSTabView because the style is not customizable.
    >> Basically I need something similar in look to the Safari tabs, but
    >> on a VERTICAL direction.  At this point I am thinking about a
    >> custom NSView with CALayers for each tab element and then handling
    >> the MouseDown and MouseUp events to "capture" the button press.  Or
    >> is there another approach I can take?

previous month april 2010 next month
MTWTFSS
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
Go to today