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?

1 Answer 1

-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?

1
  • 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, 2014 at 9:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.