• 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: How do you get the font used in a menu item?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: "Adam R. Maxwell" <email@hidden>
  • Date: Tue, 21 Apr 2009 17:45:21 -0700


On Apr 21, 2009, at 5:36 PM, Jerry Krinock wrote:

I get a default menu from a newly-created popup button cell by sending

   -[NSPopUpButtonCell menu]

How can I find out the font used in this menu?  (It's an NSMenu.)

I don't see any 'font' accessors, and -[NSMenuItem attributedTitle] returns nil.

The only way I know of is the menu-related class methods in NSFont.


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

_______________________________________________

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

References: 
 >How do you get the font used in a menu item? (From: Jerry Krinock <email@hidden>)

  • Prev by Date: How do you get the font used in a menu item?
  • Next by Date: Re: How do you get the font used in a menu item?
  • Previous by thread: How do you get the font used in a menu item?
  • Next by thread: Re: How do you get the font used in a menu item?
  • Index(es):
    • Date
    • Thread