iTunes style NSTabView

Discussion in 'Mac Programming' started by SuicidalCheezIt, Aug 9, 2008.

  1. SuicidalCheezIt macrumors newbie

    Joined:
    Aug 9, 2008
    #1
    I've been wondering how apple did the iTunes style tab view. Opening the iTunes nib files shows normal NSTabView styled tabs. Is there any code documented for this?
     
  2. Sijmen macrumors 6502a

    Joined:
    Sep 7, 2005
    #2
    Some call it magic
    The search for the grail

    Subclassing NSTableView is the answer
    Now you know that
    For sure

    :D
     
  3. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #3
    The behavior of the tabs is different than a normal tab view in that the selected tab covers up the previous tab, which NSTabView does not do. So, I'd suggest implementing a custom view that contains custom NSButtons for the tabs (you'd want to subclass NSButton and NSButtonCell), and then below those buttons you'd want a standard tabless NSTabView. The buttons would then switch your internal tab view.
     

Share This Page