Need help setting font of NSTextView
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...