• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSMenuItem setAttributedTitle, title draws too high
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMenuItem setAttributedTitle, title draws too high


  • Subject: Re: NSMenuItem setAttributedTitle, title draws too high
  • From: Glen Simmons <email@hidden>
  • Date: Thu, 30 Mar 2006 08:34:34 -0600


On Mar 29, 2006, at 7:23 PM, Douglas Davidson wrote:


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?

Just did and no change. Any other ideas?

Thanks,
Glen
_______________________________________________
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


References: 
 >NSMenuItem setAttributedTitle, title draws too high (From: Glen Simmons <email@hidden>)
 >Re: NSMenuItem setAttributedTitle, title draws too high (From: Douglas Davidson <email@hidden>)

  • Prev by Date: NSFileManager Preference Pane
  • Next by Date: Double click in QTMovieView
  • Previous by thread: Re: NSMenuItem setAttributedTitle, title draws too high
  • Next by thread: NSImage Path
  • Index(es):
    • Date
    • Thread