Re: Making NSControlTints?
Re: Making NSControlTints?
- Subject: Re: Making NSControlTints?
- From: Finlay Dobbie <email@hidden>
- Date: Tue, 24 Jul 2001 19:57:16 +0100
On Tuesday, July 24, 2001, at 06:05 pm, Ken Tabb wrote:
>
Hi,
>
upon stumbling through some Cocoa docs (I think it was in the
>
NSProgressIndicator, or superclass thereof) I found mention of setting
>
NSControlTints. Is this what makes the traffic light window buttons red,
>
green and blue?
>
>
I've found no mention of how to make NSControlTints, just how to set a
>
control's NSControlTint once you have an NSControlTint. Could someone
>
point me to the NSControlTint info?
No. NSControlTints do not work in this way. The traffic light buttons
are probably just pictures somewhere, or some custom drawing code. From
NSCell documentation:
These constants specify a cell's tint. They're used by controlTint and
setControlTint:.
<Attachment missing>
The definition is:
typedef enum _NSControlTint {
NSDefaultControlTint,
NSClearControlTint
} NSControlTint;
There are only 2 NSControlTints recognised, and those are the two.
-- Finlay