I need to convert «class ocid» output from ComboBox to list, please

G’day

I’ve got a combo box that users can use to fill in email addresses.

Trouble is the line below is returning an error.

I presume I need to set a class, and somehow read the info from the box, but how?

Regards

Santa


log
set MainRecipients to MainMailRecipients's objectValues() as text

gives this log

Can’t make «class ocid» id «data kptr000000002023640002000000» into type text. (error -1700)

Browser: Safari 531.9
Operating System: Mac OS X (10.6)

G’day

I fixed it by writing to my own preferences. The Combo Boxes wouldn’t let me add items to them for some reason (I had ‘single line’ unticked in the inspector), so I’ve added to their arrays programatically, and save the array as a list in preferences. Pain the the proverbial.

Regards

Santa

objectValues is not a cocoa command with an ‘s’

set valmailrec to (MainMailRecipients’s objectValue()) as list