I am trying to find a way to scrool down at the end of a NSTextField automatically. The textField is updated in a loop so I wanted to know how to make it display the last text entered each time by scrolling down.
Here is my code:
var tmp = consoleView.stringValue.utf16Count
if tmp >= 25000
{
consoleView.stringValue = "";
}
consoleView.stringValue = //[..longStringHere..]
consoleView.//SCROLLDOWN
I saw there are some answers in objective-c but I never did any program in it so I don't understand it well...
Thank you