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 PROTECTED]> 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 PROTECTED] > Rogue Research www.rogue-research.com > Mac Software Developer Montréal, Québec, Canada > > > > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > 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/sephknows%40gmail.com > > This email sent to [EMAIL PROTECTED] >
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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]