• 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
Need help setting font of NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Need help setting font of NSTextView


  • Subject: Need help setting font of NSTextView
  • From: Doug Brown <email@hidden>
  • Date: Wed, 9 Jan 2002 22:19:15 -0800

Hello,

I'm having trouble figuring out how to what seems like a simple task in Cocoa. I have an NSTextView that is not editable, and I want to be able to use NSFontPanel (or just a menu with the font names in it or something) to set the font (and size) of the entire text within it. I've been trying to read the documentation, but it's confusing me. Does NSFontPanel only work when you're using an editable text view? If possible, I'd also like to simultaneously set the font of an NSTextField when that happens. Could anyone guide me in the right direction? Thanks!

Doug

p.s. If this message accidentally appears twice, I used the wrong e-mail address for the first post - so it is awaiting moderator approval (that email address isn't registered for cocoa-dev). Hopefully, it doesn't get posted again later...


  • Follow-Ups:
    • Re: Need help setting font of NSTextView
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Adjusting NSTableView row height for custom fonts
  • Next by Date: Re: Database
  • Previous by thread: Adjusting NSTableView row height for custom fonts
  • Next by thread: Re: Need help setting font of NSTextView
  • Index(es):
    • Date
    • Thread