Combo box to display images

Hi

I am new to applescriptobjc and struggling with combo box. i am developing one application and it has a menu where user can select borders (image) from the drop down menu and can apply on photoshop document. i want to create drop down menu with combo box to change images in image well.

i have done lot of search but could not find anything…

pls help

Aren’t you looking for NSPopupButton instead of an NSComboBox? NSComboBox is like NSTextField but with a drop down menu as suggestion.

thank you for your reply.

i am looking for combo box with drop down menu. kindly suggest on the same.

thanks again

A popup button can have a drop down menu or a popup menu. A combo box also has a drop down menu but you can also type in a choice. Do you want your users to be able to type in whatever they want, or do you want them to only choose from a list?

Ric

i want them to choose from the list

thanks

Then you want a popup button set to pull-down mode, not a combo box.

but i want to load image on image well when selecting an item in the button. in pop up button how to adjust that.

thanks

pointerToPopupButton's removeAllItems()
pointerToPopupButton's addItemsWithTitles_({"title 1", "title 2", "etc..."})