• 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: Changing fonts without font menu?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing fonts without font menu?


  • Subject: Re: Changing fonts without font menu?
  • From: Aki Inoue <email@hidden>
  • Date: Tue, 13 Jun 2006 12:20:23 -0700


What am I missing here? Is the action for the menu item being reset dynamically somehow, based on the face of the first character of the current text selection? If so, where is this being done? If not, how does it work? Can it be made to work the same way for a toolbar button?
In a sense, yes, the action from the menu item is being toggled dynamically.

-[NSFontManager validateMenuItem:] gets invoked for the menu item, and it sets the tag to NSBoldFontMask if the current selected font has no bold trait, and NSUnboldFontMask if has bold trait.

Aki
_______________________________________________
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: 
 >Re: Changing fonts without font menu? (From: Mike Wright <email@hidden>)

  • Prev by Date: Re: dynamic GUI, how to?
  • Next by Date: Re: dynamic GUI, how to?
  • Previous by thread: Re: Changing fonts without font menu?
  • Next by thread: Re: Re: Re: Re: inconsistent crash drawing a string in a custom browser cell
  • Index(es):
    • Date
    • Thread