How do I get the currently selected element in NSDatePicker?

276 Views Asked by At

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

There are 1 best solutions below

1
On

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?