I have an NSTextField, a label, that I want to change a few times while my app is running. I made the following method:
on setProgressComment_(myString) set myString to myString as string log myString progressCommentTextField's setStringValue_(myString) end setProgressComment_
At several places in my code I inserted lines like:
setProgressComment_("Now doing A") -- Code for doing A setProgressComment_("Now doing B") -- Code fror doing B
However, only the first invocation of my method changes the textField at runtime, after that, it remains stuck on “Now doing A”. Until the very end when the following line appears:
Which successfully clears the Text field
The debugger Console shows the method being called with the correct string, it’s just the text field that doesn’t update. Any idea what might be going on here?