disorderdev
disorderdev

Reputation: 1468

change NSTextField background while mouse over

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

Answers (1)

Nicholas Riley
Nicholas Riley

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

Related Questions