PDA

View Full Version : Edit NSTextField on double click




davbeck
Sep 25, 2009, 10:58 PM
I would like to mimic the behavior that Interface Builder (and many other programs) has in regards to text labels. Basically, you double click on a label and it becomes a text field where you can edit it. When you click away, it turns back into a label.

Is there any better way of doing it than having a label and detecting double click and swapping it out for a textfield?