• 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: A question about Tabviews and tabview items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A question about Tabviews and tabview items


  • Subject: Re: A question about Tabviews and tabview items
  • From: Sean Murphy <email@hidden>
  • Date: Mon, 14 Apr 2008 00:26:33 -0400

On Apr 13, 2008, at 6:24 PM, Development wrote:

Is it possible to create a tabview who's tabviewitems have a custom look, For instance, the label is horizontal when the tabs are on the side, or can have icons? If so could I get a pointer to some info as I cant seem to find any.

Rather than subclassing NSTabView (since it does not really expose any mechanism to override tab drawing), custom tabs can be implemented by hiding the NSTabView's tab buttons and utilizing a completely separate custom "tab bar" view containing your buttons. The custom view would then oversee the actual NSTabView's selection, set as its delegate to monitor outside selection changes, and would itself switch to the proper NSTabViewItems when clicked.


For some examples of this approach, take a look at what we do in Camino: <http://mxr.mozilla.org/seamonkey/source/camino/src/browser/BrowserTabBarView.mm >

And see the excellent PSMTabBarControl:
<http://code.google.com/p/maccode/source/browse/trunk/Utilities/PSMTabBarControl/source/ >


-Murph
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: A question about Tabviews and tabview items
      • From: Development <email@hidden>
References: 
 >A question about Tabviews and tabview items (From: Development <email@hidden>)

  • Prev by Date: Re: Why should we set ivars to nil in dealloc?
  • Next by Date: Re: Running a "Choose Template" Sheet
  • Previous by thread: A question about Tabviews and tabview items
  • Next by thread: Re: A question about Tabviews and tabview items
  • Index(es):
    • Date
    • Thread