• 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: Fredrik Olsson <email@hidden>
  • Date: Thu, 08 Jun 2006 16:48:42 +0200

Fredrik Olsson skrev:
Having a NSFontManager and handling font changes from a standard font menu is easy. But is there a way to hook up buttons to make text bold/unbold?

I can not get sending addFontTrait actions to work, and the documentation I have found only speaks of hooking up menus manually, not other controls.

Perhaps a viable solution would be to add bold: and italic: methods to the NSTextView class?

And if so, how would I best implement that in a way that mimics what underline: does for toggling underlining?

// Fredrik Olsson

_______________________________________________
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: 
 >Changing fonts without font menu? (From: Fredrik Olsson <email@hidden>)

  • Prev by Date: RE: Changing fonts without font menu?
  • Next by Date: Re: Changing fonts without font menu?
  • Previous by thread: Changing fonts without font menu?
  • Next by thread: RE: Changing fonts without font menu?
  • Index(es):
    • Date
    • Thread