iTunes style NSTabView

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

  1. SuicidalCheezIt macrumors newbie

    Aug 9, 2008
    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

    Sep 7, 2005
    Some call it magic
    The search for the grail

    Subclassing NSTableView is the answer
    Now you know that
    For sure

  3. kainjow Moderator emeritus


    Jun 15, 2000
    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