Skip to main content
1114062249
Participant
October 3, 2022
Question

How can I set TextField's text programmatically in mac?

  • October 3, 2022
  • 0 replies
  • 60 views

In EmptyPanel sample, I called NSTextField::setStringValue at the end of EmptyPanelPlugin::AddWidgets() like below.

 

[calculator->output setStringValue:@"3333"];

 

But output text doesn't set to "3333", it sets to empty string.

How can I set TextFiled programmatically?

This topic has been closed for replies.