This is my first post. I apologize ahead of time because I’m sure this is a huge NOOB question; however, I have spent several days searching and trying different code without success. So here goes.
I have a simple script and it basically takes text and displays it in a NSTextField; however, I’d like to transition this NSTextField to a field that scrolls. My understanding is that the most common way to do this is to use the NSTextView in NSScrollView. Up to this point I’ve been successful in exchanging data between two simple NSTextField’s using:
set my textField to "The Text To Display"
However, once I drop in a “NSTextView in NSScrollView”, with the same name and connections, I’m unable to send/receive data from the NSTextView.
I understand that setting these up is slightly more complicated and I’m struggling to find an applescriptobjc resource that clearly explains each step involved. I also understand that placing data on the NSTextView is a slightly different process. I’ve tried several iterations of the following without success:
textField's setString_("TEST")
I’m guessing that this is more of an issue related to setting up the correct connections with the “NSTextView in NSScrollView” because my defined variables are not showing up upon initial loading of the project. In that past they have always loaded correctly into the simpler NSTextField:
property textField : missing value
Any guidance you can provide would be greatly appreciated. Thank you again.
Devan