Answer the question
In order to leave comments, you need to log in
How to change the content of NSTextView in Xcode?
When I need to change the contents of a text field I do:
@IBOutlet weak var TestText: NSTextField!
TestText.stringValue = "your string here";
And to find out that the parameter there is exactly "stringValue", and not Text (not Caption, Value ..), I had to google the rules.
And so I created a Text View to enter text there. And how do I know what its "content" parameter is? Similarly for all other elements - how to quickly find out what is responsible for their content?
In C++ Builder and Delphi many years ago, as far as I remember, it was all just written out on the left. You see that Caption is there - you change Caption. You see "Ololo" - you pass through "Ololo".
How about here?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question