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 PROTECTED]> 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 protected])
>
>  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/kenferry%40gmail.com
>
>  This email sent to [EMAIL PROTECTED]
>
_______________________________________________

Cocoa-dev mailing list ([email protected])

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/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to