Skip navigation.
 
mlNSMenuItem and images
FROM : Kristopher Matthews
DATE : Mon Apr 28 01:03:10 2008

I have an NSPopUpButton populated with some NSMenuItems that have 
images. I'm trying to determine the proper dimensions for the image. 
I'm getting the image from [NSWorkspace: iconForFile], which appears 
to be returning them at 32x32, much too large. Manually resizing to 
16x16 works well, but I don't want to hardcode that image size.

Anyone have any thoughts on this? I've looked through the 
documentation but didn't see anything very obvious.

Thanks,
Kris

Related mailsAuthorDate
mlNSMenuItem and images Kristopher Matthew… Apr 28, 01:03
mlRe: NSMenuItem and images Seth Willits Apr 28, 06:29
mlRe: NSMenuItem and images Adam R. Maxwell Apr 28, 06:44
mlRe: NSMenuItem and images Kristopher Matthew… Apr 28, 13:39
mlRe: NSMenuItem and images Hamish Allan Apr 28, 14:12
mlRe: NSMenuItem and images Kristopher Matthew… Apr 28, 14:28
mlRe: NSMenuItem and images Adam R. Maxwell Apr 28, 15:21
mlRe: NSMenuItem and images Hamish Allan Apr 28, 15:33
mlRe: NSMenuItem and images Kristopher Matthew… Apr 28, 15:41
mlRe: NSMenuItem and images Adam R. Maxwell Apr 28, 15:48
mlRe: NSMenuItem and images Hamish Allan Apr 28, 16:00
mlRe: NSMenuItem and images Adam R. Maxwell Apr 28, 16:07
mlRe: NSMenuItem and images glenn andreas Apr 28, 16:18
mlRe: NSMenuItem and images Adam R. Maxwell Apr 28, 16:39
mlRe: NSMenuItem and images Kristopher Matthew… Apr 28, 20:22