Re: How do you get the font used in a menu item?
Re: How do you get the font used in a menu item?
- Subject: Re: How do you get the font used in a menu item?
- From: Jerry Krinock <email@hidden>
- Date: Tue, 21 Apr 2009 20:10:14 -0700
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 (email@hidden)
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:
This email sent to email@hidden