Re: Control tints
Re: Control tints
- Subject: Re: Control tints
- From: Norbert Heger <email@hidden>
- Date: Wed, 30 Jan 2002 18:30:04 +0100
email@hidden wrote:
>
I'm making a custom control in Cocoa, and I'd like it to look blue
>
when the system tint is blue, graphite when the system tint is
>
graphite. I've found the enumeration for tints and the "control tint
>
changed" notification in NSCell.h (funny place for it if you ask
>
me :->). However, I can't find any way anywhere to get the current
>
system control tint, to know which tint to use in drawing my control.
int tint = [[NSUserDefaults standardUserDefaults]
integerForKey:@"AppleAquaColorVariant"];
if (tint == 6) { /* graphite */ } else { /* blue */ }
Don't know if the constants "AppleAquaColorVariant" and "6" are defined
anywhere...
Best Regards, Norbert
_____________________________________________
Norbert Heger, Objective Development
http://www.obdev.at/