Take the 2-minute tour ×  I'm trying to set the text in an
NSTextField, but the -setStringValue: and -setTitleWithMnemonic:
methods are not working. Any ideas?  share|improve this question
Is your NSTextField referenced as an IBOutlet and attached
properly (if you're using Interface Builder that is...) – 
jlindenbaum May 15 '10 at 20:15  2 Answers 2  up vote 118 down
vote accepted  setStringValue: is the way to do it. You should
make sure your outlet is being set properly. (In the debugger,
make sure your textfield variable is not null.)  share|improve
this answer  Just Do Something Like This For Example:
myLabel.stringValue = @"My Cool Text";  share|improve this
answer  Your Answer