views:

51

answers:

0

I've noticed that under MacOS 10.3.9 and 10.4.11, an NSMenuItem's attributed title is aligned with the top of its image. In other words, if the menu item's image is higher than its title, the title floats up to the top of the image.

Under 10.6, an NSMenuItem's attributed title is aligned with the middle of its image. The title is vertically centered on the image. It happens that this is my desired behavior.

I suppose that it's going to be impossible to change the OS behavior in earlier OS versions, so I'll have to detect the OS version in code and then do the vertical alignment manually. What a pain.

My question is: how can I find out exactly when Cocoa's behavior changed? I don't have access to every OS version released. Is there likely to be any documentation of this change? Is there an Apple contact I can ask for clarification? I plan to check NSAppKitVersionNumber and I would like to know what is the threshold at which behavior changed.