Re: Changing fonts without font menu?
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