Yueh-Ming Chien
Yueh-Ming Chien

Reputation: 149

How to achieve the selecting effect of NSDatePicker by NSTextField

I wanna implement a custom TextField and its behavior just like NSDatePicker with its own data format, like 00:00:10:25

enter image description here

The requirement is as following:

  1. It should select text like NSDatePicker.
  2. Support the same mouse and keyboard operation, such as changing select when key or is pressed, adjusting value when or is pressed...and so on.

This is what I want to implement:

enter image description here

I'll appreciate so much if someone could guide me how to implement it, or give me some hint.

Upvotes: 0

Views: 203

Answers (0)

Related Questions