• 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
Changing color of NSTabViewItem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changing color of NSTabViewItem


  • Subject: Changing color of NSTabViewItem
  • From: "Anthony Cheung" <email@hidden>
  • Date: Thu, 21 Aug 2003 10:31:39 +0800

Dear all,

I am using a Tab view in my application. I would like to change the color tab
label. I have done the following code but there is no effect. Would anyone
please tell me what i have done wrong

NSString *tabLabel;
NSTabViewItem *tabViewItem;

tabLabel = @"testing";
tabViewItem = [myTabView tabViewItemAtIndex:0];
[tabViewItem setLabel:tabLabel];
[tabViewItem setColor:[NSColor redColor]];

I have "testing" shown as the label of the tab item but the color is no
change.

Many thanks in advance for your help.

Regards,

Anthony Cheung
_______________________________________________
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: Changing color of NSTabViewItem
      • From: "M. Uli Kusterer" <email@hidden>
  • Prev by Date: Re: Simple question: Why does this work?
  • Next by Date: Re: Address book people chooser
  • Previous by thread: Re: limits of objects
  • Next by thread: Re: Changing color of NSTabViewItem
  • Index(es):
    • Date
    • Thread