NSPopUpButton 16x16 icons on 10.1.x
NSPopUpButton 16x16 icons on 10.1.x
- Subject: NSPopUpButton 16x16 icons on 10.1.x
- From: Nicholas Riley <email@hidden>
- Date: Mon, 28 Oct 2002 04:04:52 -0600
- Mail-followup-to: email@hidden
Hi,
I've got a popup menu in my application which includes icons. If you
have Jaguar, take a look at the CD & DVD or Internet System
Preferences, where you pick an application - that sort of thing. It's
displaying a 16x16 icon. On both 10.2.1 and 10.1.5, the icon appears
correctly in the popup menu.
The icon also draws properly in the button on Jaguar - it is
vertically centered. On Mac OS X 10.1.5, the icon looks lousy because
the bottom of the icon is at the text baseline, so the top of the icon
touches the top of the control. I notice Project Builder works around
this by using only 12x12 icons in its NSPopUpButtons, but I can't do
that because I need to display the icons of arbitrary files.
So, is it possible to do one of these things - and if so, how?
- get the icon to display properly in 10.1.5? Can I somehow override
the image placement in the NSPopUpButton to work around the bug?
- stop icons from appearing in the button, but just let them appear in
the menu? I tried setImage: nil in my action method, but it appears
to have no effect.
My last resort is just to display no icons in the menus for my 10.1.x
users, but I'd prefer not to do that.
--
=Nicholas Riley <email@hidden> | <
http://www.uiuc.edu/ph/www/njriley>
Pablo Research Group, Department of Computer Science and
Medical Scholars Program, University of Illinois at Urbana-Champaign
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.