• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [SOLVED] Re: Setting the image of an NSPopUpButton in IB?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: [SOLVED] Re: Setting the image of an NSPopUpButton in IB?
      • From: Nick Zitzmann <email@hidden>
References: 
 >Setting the image of an NSPopUpButton in IB? (From: Nick Zitzmann <email@hidden>)
 >Re: Setting the image of an NSPopUpButton in IB? (From: Jens Alfke <email@hidden>)
 >[SOLVED] Re: Setting the image of an NSPopUpButton in IB? (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: NSURLConnection SSL connection with expired cert.
  • Next by Date: Re: [SOLVED] Re: Setting the image of an NSPopUpButton in IB?
  • Previous by thread: [SOLVED] Re: Setting the image of an NSPopUpButton in IB?
  • Next by thread: Re: [SOLVED] Re: Setting the image of an NSPopUpButton in IB?
  • Index(es):
    • Date
    • Thread