Re: NSMenuItem setAttributedTitle, title draws too high
Re: NSMenuItem setAttributedTitle, title draws too high
- Subject: Re: NSMenuItem setAttributedTitle, title draws too high
- From: Douglas Davidson <email@hidden>
- Date: Wed, 29 Mar 2006 17:23:16 -0800
On Mar 29, 2006, at 5:17 PM, Glen Simmons wrote:
I'm using -setAttributedTitle: to make the titles of menu items in
a popup smaller. Specifically, I'm setting NSFontAttributeName to
[NSFont systemFontOfSize:10.0]. It works, except that now, the
title is drawn at the top of the menu item's rect. I can tell
because they also have an image which was set with -setImage:. Is
there some way to set the alignment of the title?
Have you tried NSBaselineOffsetAttributeName?
Douglas Davidson
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden