How to create NSDatePicker with pop graphic calendar?

899 Views Asked by At

Im trying to create a text field with a calendar pop just like you see in the Calendar App of MacOS:

Calendar pop

I imagined it would be something native, but can't quite find how to implement it for MacOS. If you could give me tips of which elements are being used I appreciate.

1

There are 1 best solutions below

3
Marc T. On BEST ANSWER

I implemented such a functionality in one of my Apps. There is nothing native available in macOS. To get this behavior you can use a border less window with a custom shape. The window can be opened relative to the view triggering the action. In the window you can use a regular NSDatePicker.

enter image description here

Let me know if you need further help.

Sample code on GitHub

All the best.