How can i display a list of images stored in an array as list item in pop up button.
If not possible, what can be the alternative way to do so.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
NSMenuItem has a -setImage: method which allows you to assign a image to be displayed with the menu item in a popup button.
NSMenu has a number of methods which allow you to obtain the NSMenuItem’s from it, like -itemWithTag:, itemWithTitle:, etc.
Furthermore, NSPopupButton has a number of methods which allow you to obtain the NSMenuItem’s from it like, -itemArray, -itemAtIndex:, etc. and, of course, a -menu method which allows you to obtain its NSMenu directly.