• 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: Setting the image of an NSPopUpButton in IB?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting the image of an NSPopUpButton in IB?


  • Subject: Re: Setting the image of an NSPopUpButton in IB?
  • From: "Steven Degutis" <email@hidden>
  • Date: Mon, 3 Mar 2008 20:01:24 -0600

For the first time a few days ago, I began to use NSPopUpButton and
began to test it in IB3 to experiment around and see what it could do.
Ultimately, I was planning on using -setImage: programattically, but
it seemed odd that I couldn't set its image in IB. Within a few
minutes, I had solved the problem. Firstly I had to make sure I set
the image on the actual NSMenuItem inside the pop up button, not the
button itself. Second, ??????. Thirdly, I found I could only see the
image when I ran the interface in Cocoa Simulator (or built/ran the
whole application). So, rest assured it works, but you just won't see
it in IB3.

On Mon, Mar 3, 2008 at 5:19 PM, Sean McBride <email@hidden> wrote:
> On 3/3/08 2:56 PM, Nick Zitzmann said:
>
>  >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?
>  >No matter what I type in the image field, the field is always cleared
>  >out, and no image is displayed.
>
>  I filed this bug in July <radr://5357188> and was told:
>
>  "As for the issue with the pop-up button, you are running into a
>  mismatch between the AppKit API for controls.  NSButton does provide a
>  setImage: API, but if you inspect the API for NSPopUpButton you'll find
>  the following description:
>
>         - (void)setImage:(NSImage *)anImage
>
>         This method has no effect.
>
>  NSPopUpButton does not respond to this API at all.  Our inspectors
>  expose the API by concrete class, which is why the field to set the
>  image is listed on NSButton's inspector slice.  We do not attempt to
>  disable controls in inspector slices based on what the subclasses
>  respond to - we have no means to validate that or support it long term.
>  As a result, this is a duplicate of the bug we have to track this
>  difference, Bug ID# 5024840."
>
>  --
>  ____________________________________________________________
>  Sean McBride, B. Eng                 email@hidden
>  Rogue Research                        www.rogue-research.com
>  Mac Software Developer              Montréal, Québec, Canada
>
>
>
>  _______________________________________________
>
>  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

References: 
 >Setting the image of an NSPopUpButton in IB? (From: Nick Zitzmann <email@hidden>)
 >Re: Setting the image of an NSPopUpButton in IB? (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: Relaunching an application
  • Next by Date: General MVC and ownership question
  • Previous by thread: Re: Setting the image of an NSPopUpButton in IB?
  • Next by thread: Re: Better Anti-Aliasing for drawing?
  • Index(es):
    • Date
    • Thread