Preventing an NSTextField from becoming active (Cocoa OSX)

I want my NSTextFields in my GUI to act like the text fields in the apple finder (the text only becomes active for editing if the text is clicked on when the item is selected). I tried overwriting the mousedown method of the NSTextField to prevent the selection but this did not do the trick. What method do I need to override to accomplish this behavior?

Answers


Bind the text field's editable property to the "item's" (whatever that is) selected property.


Need Your Help

variable button vb.net

vb.net event-handling

i declared a global variable button:

Adding a service layer to my application

c# asp.net-mvc asp.net-mvc-3 entity-framework

Currently, I have a controller method that includes a try/catch statement for sending emails that loops through a db list: