NSColorWell shows no color
NSColorWell shows no color
- Subject: NSColorWell shows no color
- From: tobias assmann <email@hidden>
- Date: Sat, 27 Dec 2008 10:13:04 +0000 (GMT)
Hello all,
I hope my question is not that stupid. I wouldn`t ask, if I knew anything more to do. Seems like I am stuck with this:
I use some NSColorWell objects in a preference section of my view. User can chosse so me colors there. All works fine exept one thing. The NSColorWell objects are initialized with default values out of a NSColorList when the UI is opened. But the NSColorWell objects show the color white. When a NSColorWell is clicked the color that is supposed to be selected shows up in the NSColorWell and the default selctor as well. It would be nice to see the color, without the need to click NSColorWell. I have really no idea what my be wrong. This is the code, which I use in the draw method of the view containing the NSColorWells:
// Fill the colorWells
[uiBgColorWell setColor:[topv..colors colorWithKey:@"bg"]];
[uiBlinkColorWell setColor:[topv.colors colorWithKey:@"blink"]];
[uiActivBeatColorWell setColor:[topv.colors colorWithKey:@"activeBeat"]];
[uiInactiveBeatColorWell setColor:[topv.colors colorWithKey:@"inactiveBeat"]];
Anyone with an idea to this is very very welcome :-)
Greets
Tobias
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden