• 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
NSMenuItem icon with attributed text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSMenuItem icon with attributed text


  • Subject: NSMenuItem icon with attributed text
  • From: Rakka <email@hidden>
  • Date: Fri, 10 Jun 2005 13:03:56 +1000

Hi,

When I give a menu item a 16x16 icon when the font size of the item is customized (i put it at 12pt), the text placement is not vertically centered anymore (it is to toward the top of the menuitem cell, with some space below). I have to use 12x12 icons now, and it looks pretty ugly. However, when using the default size for text in a menu item, no matter how large the icon is, the text is always vertically centered. Any ideas? Setting baseline through interface builder doesn't work either. Thanks. I could always use an AttributedTitle created programmatically in Xcode, but I prefer to do it through Interface Builder, as I have quite a lot of these menu items.

Rakka

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

  • Prev by Date: Re: Strange problem
  • Next by Date: Re: Universal Binaries, x86 and compatibility...
  • Previous by thread: Re: Strange problem
  • Next by thread: Re: NSMenuItem icon with attributed text
  • Index(es):
    • Date
    • Thread