Skip navigation.
 
mlRe: [SOLVED] Re: Setting the image of an NSPopUpButton in IB?
FROM : Ken Ferry
DATE : Mon Mar 03 23:57:40 2008

Hi Nick,

See the docs for -[NSPopUpButtonCell setImage:]:

---
setImage:
This method has no effect.

- (void)setImage:(NSImage *)anImage

Parameters
anImage
The image to display.

Discussion
The image displayed in a pop up button is taken from the selected menu
item (in the case of a pop up menu) or from the first menu item (in
the case of a pull-down menu).

----

-Ken




On Mon, Mar 3, 2008 at 2:32 PM, Nick Zitzmann <<email_removed>> wrote:
>
>  On Mar 3, 2008, at 3:21 PM, Jens Alfke wrote:
>
>  > 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.
>
>
>  Thanks. I guess it's a bug, then, that filling out the title of the
>  first item works but filling in the image doesn't... I'll file a bug.
>
>
>
>  Nick Zitzmann
>  <http://www.chronosnet.com/>
>
>  _______________________________________________
>
>  Cocoa-dev mailing list (<email_removed>)
>
>  Please do not post admin requests or moderator comments to the list.
>  Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
>  Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
>  This email sent to <email_removed>
>

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