Re: Changing Fonts in NSTexView
Re: Changing Fonts in NSTexView
- Subject: Re: Changing Fonts in NSTexView
- From: Lukas Westermann <email@hidden>
- Date: Thu, 11 Jul 2002 08:17:21 +0200
- Organization: AdNovum
Hello,
the easiest way to set a Font for a NSTextView is
to do it in InterfaceBuilder...
Double click in the NSTextView in your window and hit Command-T. This
will bring up the Font Panel, and you can select a font for display.
I hope this helps
-- Lukas
Tom Gray wrote:
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?
--
+---------------------------------------------------------------------+
Lukas Westermann
mailto:email@hidden
AdNovum Informatik AG
http://www.adnovum.ch phone: +41 (1) 272 6111
Roentgenstrasse 22, CH-8005 Zuerich fax: +41 (1) 272 6312
+---------------------------------------------------------------------+
AdNovum Software Inc. San Mateo, CA 94404 phone: +1 (650) 525 9322
1400 Fashion Island Boulevard, Suite 309 fax: +1 (650) 525 9324
+---------------------------------------------------------------------+
_______________________________________________
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.