views:

202

answers:

2

I'm trying to set the text in an NSTextField, but the -setStringValue: and -setTitleWithMnemonic: methods are not working. Any ideas?

Rgds / a²

+5  A: 

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.)

Ken Aspeslagh
A: 

Is your NSTextField referenced as an IBOutlet and attached properly (if you're using Interface Builder that is...)

jlindenbaum