Since 10.7 NSVeiw
has new method called alignmentRectForFrame:
that returns NSRect
of actual content (excluding borders, shadows, reflections ...).
Is there an alternative methon or workaround on 10.6?
Details: I am creating NSPopUpButton
with a list (NSMenu
) containing NSImage
s as items. The problem is that, by default, images in NSMenu
have the original size, but the selected one (seen in NSPopUpButton
) is rescaled. I would like images to be the same size both in NSMenu
and NSPopUpButton
.