2

I'm using an NSDatePicker view for my project. The stock date picker is not working for me. Therefore, I have subclassed NSDatePicker and am trying to handle keyboard events myself. These date pickers are placed in a table view.

enter image description here

Question: How do I detect the currently selected element (hour or minute) in my date picker?

Community
  • 1
  • 1
Maarten
  • 1,873
  • 1
  • 13
  • 16

1 Answers1

-2

Access to single cells is only available through private methods. As an alternative, you may build your own NSDatePicker mimicking control without subclassing.

What is the ultimate goal anyway?

Volker
  • 4,640
  • 1
  • 23
  • 31
  • I am trying to customise the behaviour of the date picker. Increment seconds in steps of 5 when a key is pressed, for example. For that reason, it would be useful to know which element is selected when the arrow keys are pressed. – Maarten Jan 29 '14 at 09:27