Re: Need help setting font of NSTextView
Re: Need help setting font of NSTextView
- Subject: Re: Need help setting font of NSTextView
- From: Douglas Davidson <email@hidden>
- Date: Thu, 10 Jan 2002 19:10:10 -0800
On Thursday, January 10, 2002, at 04:14 PM, Doug Brown wrote:
I tried overriding rangeForUserCharacterAttributeChange to:
return NSMakeRange(0, [[self string] length]);
And it only seems to change the font attributes when there is nothing
inside the textView. Any ideas?
Here is one suggestion from Ali Ozer: You might want to look at
TextEdit's Preferences.m, which brings up a font panel targetted at a
non-editable textfield. Actually, the font panel is targetted at the
Preferences object, which grabs font change info by implementing
-changeFont:.
Douglas Davidson