質問

Anybody knows if it's possible to modify the date picker three little grey buttons (in its upper left corner) behavior?

I want the date picker displays the current day when clicking in the middle button (the circle one).

Any help will be appreciated. Thanks in advance.

役に立ちましたか?

解決

Since NSDatePicker contains an NSDatePickerCell that handles most of the drawing and actions, the short answer is no, there's not an easy way to modify the behavior of the middle button.

However, I have discovered that option-clicking this button will jump to today. :-)

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top