Reputation: 1468
in iPhoto when editing an event's property, if you move your mouse over a text field(like event name), the background will change, and become editable, when mouse move out, the background change back, so I'm wondering how to implement that kind of text field?
Upvotes: 2
Views: 1863
Reputation: 44351
Subclass NSTextField
, add a tracking rect (some steps are here and here) and modify the field properties in your mouseEntered:
/mouseExited:
methods.
Upvotes: 8