Hi everybody,
I have a NSComboBox and any time a selection is made within it, the selection populates the NSComboBox’s principal placeholder as expected.
What I’d like to accomplish is that anytime a selection is made, the principal placeholder gets empty immediately.
These are the approaches I tried so far but all of them end thowing an error message:
– 1 –
property myComboBox : missing value
on myComboBoxClick_(sender)
myComboBox’s deselectItem(myComboBox’s indexOfSelectedItem)
end myComboBoxClick_
Yields the following error message:
-[NSComboBox deselectItem]: unrecognized selector sent to instance 0x10071af10 (error -10000)
– 2 –
tell myComboBox
deselectItem(myComboBox’s indexOfSelectedItem)
end tell
Yields the same error message as above:
#-[NSComboBox deselectItem]: unrecognized selector sent to instance 0x10071bc20 (error -10000)
I’m sorry for this pretty basic question but I couldn’t find out how to use this function correctly:
func deselectItem(at index: Int)
Thank you in advance.
Marius