• 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: Subclassing NSTabView for a custom look ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subclassing NSTabView for a custom look ?


  • Subject: Re: Subclassing NSTabView for a custom look ?
  • From: "Alastair J.Houghton" <email@hidden>
  • Date: Mon, 22 Sep 2003 15:04:41 +0100

On Monday, September 22, 2003, at 02:46 pm, Jirome Foucher wrote:

Does anyone have some experience subclassing NSTabView in order to have a custom look for the tab view and the tabs themselves ?

Before even considering doing something like this, you should realise that Apple have expended a great deal of effort making sure that their user interface is both attractive and consistent. Granted, the tabs aren't really very pretty, but even so, they are the standard. If you make them look like something else, there is a fair chance that they will look out of place (making your app. look ugly), or confuse users.

Also, don't forget that some users alter the look and feel of their machines, and also that Apple will continue to evolve the user interface over time (there are quite a few changes in Panther, for example)... even if you write something that looks OK at the moment, it might look wrong at some point in the future.

I don't have any code for this (and I think it's probably a bad idea), but to do it I think you'd need to override -drawRect on NSTabView, and probably -drawLabel:inRect: on NSTabViewItem as well.

Kind regards,

Alastair.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Subclassing NSTabView for a custom look ?
      • From: Jérome Foucher <email@hidden>
References: 
 >Subclassing NSTabView for a custom look ? (From: Jérome Foucher <email@hidden>)

  • Prev by Date: Re: Objective-C Question
  • Next by Date: Re: Darwin/Mac OS X on IBM pSeries?
  • Previous by thread: Subclassing NSTabView for a custom look ?
  • Next by thread: Re: Subclassing NSTabView for a custom look ?
  • Index(es):
    • Date
    • Thread