Related questions
Get value from NSTextField
I have an NSTextField and I need to get the field's value into a variable. What's the appropriate method?
Listen to a value change of my text field
I'm trying to understand how to catch a "text changed" event from a text field in my window. I'm used to Java's "action listeners", and can't find anything similar in Objective-C/Cocoa.
I searched for quite a while and found …
Change the text in a NSTextField programmatically?
I am used to doing this in Cocoa-touch, so I assumed it would be quite simple. I have already tried:
field.text = [nsstring stringwithformat:@"%i", number];
[field setText:@"%i", number];
and setString, all to no avail.