On the iPhone a UITextField
can have a clearButtonMode set to show a small clear button (X) at the end of a text input. Similarly, on the Mac the NSSearchField
has a nice clear button on it at the end. My question is - is there a way to enable this on a normal NSTextField
?
There's nothing built-in; just use a search field and turn off the magnifying glass:
[[button cell] setSearchButtonCell:nil];