Reputation: 169
I'm trying to find out a way to set/get selected element from NSDatePicker
.
For example, if there is a NSDatePicker
like following the selected element is year.
I'd like to get which is the selected element and want to change selected element by coding. I can change the selection only by mouse click or arrow of keyboard.
Does anyone knows about on this?
BTW, The macOS Calendar app and Fantastical2 app does this which means there must be a way to do it without using Private API.
Upvotes: 1
Views: 187