Re: setting color of a progress indicator?
Re: setting color of a progress indicator?
- Subject: Re: setting color of a progress indicator?
- From: Cryx <email@hidden>
- Date: Sun, 28 Apr 2002 01:59:32 -0500
Hmm, the tints seem to be a no-op. I can discern no difference between
default & clear tints. Posing as NSColor doesn't affect anything
either. The colorForTintColor: nevers gets called after I invoke
setControlTint:, but it does if I manually invoke it (ie. [NSColor
colorForTintColor:...]), so I know the posing is working.
Now I am at a complete loss for how to change the color of the progress
indicator. Any ideas?
On Saturday, April 27, 2002, at 11:35 PM, Cryx wrote:
Is it possible to change the color of a progress indicator? It'd be
nice for a health indicator in a game to display red, orange, yellow,
or green for different percentiles. The closest I can find to color is
the setControlTint, which only has 2 documented values (experimentation
with other values yields no visible change).
I notice that NSColor has a colorForTintColor:. I can't use a category
to "enhance" this method, so would posing as NSColor be a suitable
solution? I keep thinking that there must be a simpler way (almost
always is the case in cocoa).
Daryn
_______________________________________________
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.
_______________________________________________
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.