Skip navigation.
 
mlRe: Setting the image of an NSPopUpButton in IB?
FROM : Jens Alfke
DATE : Mon Mar 03 23:21:43 2008

On 3 Mar '08, at 1:56 PM, Nick Zitzmann wrote:

> I checked the archives and didn't see anything. How do I set the 
> image to display in a pull-down NSPopUpButton using Interface 
> Builder 3.0?


That's funny, I was just doing this for the first time today, too! I 
got it to work...

> I also tried setting the image in the first menu item (changing the 
> pull-down back into a pop-up to do so), and this time the field 
> didn't get cleared out, but no image was drawn in the menu item.


Don't set the button style back to pop-up. Leave it pull-down, and set 
the button's Position attribute to image-only. Then select the first 
menu item and set its image name.

—Jens

Related mailsAuthorDate
mlSetting the image of an NSPopUpButton in IB? Nick Zitzmann Mar 3, 22:56
mlRe: Setting the image of an NSPopUpButton in IB? Jens Alfke Mar 3, 23:21
ml[SOLVED] Re: Setting the image of an NSPopUpButton in IB? Nick Zitzmann Mar 3, 23:32
mlRe: [SOLVED] Re: Setting the image of an NSPopUpButton in IB? Ken Ferry Mar 3, 23:57
mlRe: [SOLVED] Re: Setting the image of an NSPopUpButton in IB? Nick Zitzmann Mar 3, 23:59
mlRe: Setting the image of an NSPopUpButton in IB? Sean McBride Mar 4, 00:19
mlRe: Setting the image of an NSPopUpButton in IB? Steven Degutis Mar 4, 03:01