NSTextField is not changing value?

Posted by Curnelious on Stack Overflow See other posts from Stack Overflow or by Curnelious
Published on 2014-06-08T21:22:02Z Indexed on 2014/06/08 21:24 UTC
Read the original article Hit count: 176

Filed under:

Migrating from iOS , i might do something stupid ,but after 1 hour i couldn't change the text in a NSTextField.

Yes, its connected with an outlet, and i have tried to remove and add a few of them to the costume view, by choosing the xib file,drag a line from the NSTextField to the class than created this:

@property (strong) IBOutlet NSTextField *ProgressLabel;

I can see on the screen the label ,but it wouldn't change :

 NSLog(@"starting ");

        [self.ProgressLabel  setStringValue:@"1 2 4"];

I keep seeing a "label" on screen..

© Stack Overflow or respective owner

Related posts about osx