on NScolor
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.