applescriptobjc object identifier
I have developed an app (some time ago) in Xcode using applescript. I'm adding new features so I need to rework the app using applescriptobjc. I'm new to this version of applescript, and how to properly use it with the objects (buttons/popups). The old Xcode you gave the object a name/identity, and used applescript to to control it. I assume the concept is similar? I can't seem to figure out how/were to give the object a name to be able to control it. I have a popup button, and want to load it with an array.
I have seen examples and understand the what its doing, but the examples never show (that I can see) how the name used in the script connects to a specific object.
set catList to {"next item", "another item", "Items added"}
myPopUp's addItemsWithTitles_(catList)
how would you tell a specific popup button to be "myPopUp"
Hopefully I wasn't confusing, just wanted to be clear.