Changing Fonts in NSTexView
Changing Fonts in NSTexView
- Subject: Changing Fonts in NSTexView
- From: Tom Gray <email@hidden>
- Date: Wed, 10 Jul 2002 15:12:16 -0400
Howdy,
As always, thanks in advance.
I am an old C programmer new to Cocoa. I am attempting to emulate an old
style ANSI terminal with an NSTextView and an NSMutableString. I am trying
to set the font (and size) to Monaco. I don't know how to do this.
I initially tried to use an NSMutableAttributedString, but apparently it is
the attributes that are mutable not the string.
I then tried to set the font with an instance of NSFont but for some reason
my NSMutableString when displayed in my NSTextView does not seem to take on
the font or size that I set with [myNSFont set].
I know this should be easy, but, I simply cannot set the font for an
NSMutableString in a NSTextView. Surely this has to be EASY!?
What am I doing wrong?
--
Tom Gray
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.