How do you set the text in an NSTextField?

Solution 1:

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

Solution 2:

Just do something like this:

myLabel.stringValue = @"My Cool Text";

Solution 3:

Just myLabel.stringValue = "MY TEXT" works here, using Swift and Xcode 6.