• 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: "Sean McBride" <email@hidden>
  • Date: Mon, 3 Mar 2008 18:19:53 -0500
  • Organization: Rogue Research

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

  • Follow-Ups:
    • Re: Setting the image of an NSPopUpButton in IB?
      • From: "Steven Degutis" <email@hidden>
References: 
 >Setting the image of an NSPopUpButton in IB? (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: NSArchiver and MySQL
  • Next by Date: Re: When in the launch cycle does coredata data become available.
  • Previous by thread: Re: [SOLVED] Re: Setting the image of an NSPopUpButton in IB?
  • Next by thread: Re: Setting the image of an NSPopUpButton in IB?
  • Index(es):
    • Date
    • Thread