views:

71

answers:

1

I am trying to do a little timer app in Objective-C/Cocoa. I am using the NSDatePicker to be able to set the start value. I managed to change the text color to green, because the whole app will be in green on a HUD panel:

date picker right

But there is a problem. Whenever I am using the picker to change the value, it highlights it wit a gray color and you can't se what value it has unless you click somewhere else:

date picker wrong

I am looking for hours now, but have no clue how to fix it, any suggestions?

+3  A: 

NSDatePickerCell is a subclass of NSCell, which has the -highlightColorWithFrame:inView: method, which you can override and return any highlight color you wish.

Joshua Nozzi