On 2009 Apr 21, at 18:11, Graham Cox wrote:

And this requires the menu item's font because...?

I need to calculate how wide it will be when drawn with whatever font it is going to be drawn with.

***

But anyhow, I followed your advice. Since I need to setTitle: on my menu items anyhow, I created an attributed string and setAttributedTitle: instead. So, obviously now I know what the font is.

Problem solved.  Odd that there is no getter for fonts in menus.

Thanks, Graham.

_______________________________________________

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 arch...@mail-archive.com

Reply via email to