Re: [SOLVED] Re: Setting the image of an NSPopUpButton in IB?
Re: [SOLVED] Re: Setting the image of an NSPopUpButton in IB?
- Subject: Re: [SOLVED] Re: Setting the image of an NSPopUpButton in IB?
- From: "Ken Ferry" <email@hidden>
- Date: Mon, 3 Mar 2008 14:57:40 -0800
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@hidden> 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@hidden)
>
> 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:
>
> This email sent to email@hidden
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden