• 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: Development <email@hidden>
  • Date: Mon, 14 Apr 2008 07:03:15 -0700

You and one other both made this suggestion to me and examining it, it is certainly the easiest and most logical way to go. Which is probably why it did not occur to me. Thank you very much for your suggestion, I think this is the approach I will use.

On Apr 13, 2008, at 9:26 PM, Sean Murphy wrote:

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


References: 
 >A question about Tabviews and tabview items (From: Development <email@hidden>)
 >Re: A question about Tabviews and tabview items (From: Sean Murphy <email@hidden>)

  • Prev by Date: loading the universal bundle
  • Next by Date: Re: A question about Tabviews and tabview items
  • Previous by thread: Re: A question about Tabviews and tabview items
  • Next by thread: RE: A question about Tabviews and tabview items
  • Index(es):
    • Date
    • Thread