• 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
on NScolor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

on NScolor


  • Subject: on NScolor
  • From: "Chong Hiu Pun" <email@hidden>
  • Date: Wed, 7 Aug 2002 17:38:44 +0800

Dear all,
This time I searches the archives and many resources but still cannot find
a good answer so post here:
I can set my tablecolumn header with the following code:

NSTableHeaderCell *cell;
[NSColor setIgnoresAlpha:NO];
NSArray *col = [aTable tableColumns];
if ( [[[col objectAtIndex:1] identifier] isEqualToString:@"Output column"]
)
{
cell = [[col objectAtIndex:1] headerCell];
[cell setDrawsBackground:YES];
[cell setBackgroundColor:[NSColor ????]];
}
However, what should be placed in ???? such that the colour shown will be
aqua? I tried many method but they just show flat colour and the aqua effect
is lost.
BTW, refer to the archive
http://lists.apple.com/archives/cocoa-dev/2002/Jan/27/changingtheoncolorofann
s.003.txt, do anyone have the file ColoredButtonCell.m as I am also working on
colour NSButton (but I do not want to use Aquatint).
Thank you very much.
_______________________________________________
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.

  • Prev by Date: Re: Accessors
  • Next by Date: Re: NSTableView setDoubleAction/NSControl setAction
  • Previous by thread: Re: Can launch app as root but not as any other user
  • Next by thread: Re: on Nscolor
  • Index(es):
    • Date
    • Thread