Re: NSTextView text changes size
Re: NSTextView text changes size
- Subject: Re: NSTextView text changes size
- From: Daryn <email@hidden>
- Date: Wed, 27 Nov 2002 17:45:12 -0600
On Wednesday, November 27, 2002, at 03:06 PM, Douglas Davidson wrote:
If you really don't care what font is used, you can do what you are
doing, i.e. never specify a font and let the text view figure one out
for itself. If you do care, then set the font yourself, either via
the NSTextView, by calling setTypingAttributes: or setFont:, or else
by operating on the NSTextStorage and setting a font attribute there.
If the strings being appended are attributed strings, using these
messages to force a font cause the existing front traits such as
boldness to be lost as well (last I checked).
Multiple fonts not allowed merely means that the user is not allowed
to set multiple fonts. Programmatic changes are a different matter.
How would one go about preventing programatic changes? What part of
the text system does the automatic font substitution? Essentially what
method(s) can be overridden to lock in a font?
Daryn
_______________________________________________
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.