Re: setFont
Re: setFont
- Subject: Re: setFont
- From: Douglas Davidson <email@hidden>
- Date: Mon, 25 Apr 2005 13:37:48 -0700
On Apr 25, 2005, at 1:30 PM, Roland Silver wrote: how do I output a message to an NSTextView in a progammatically specified font? setFont is a method of NSActionCell ← NSCell ← NSObject, but NSTextView ← NSView ← NSResponder ← NSObject, so an NSTextView and an NSActionCell have no closer ancestor than NSObject.
Both your attributions and your hierarchies are missing something. setFont: is also a method of NSText, the immediate superclass of NSTextView. There are also other relevant methods like setFont:range:; for more control, remember that the text is stored in an NSTextStorage, which is a subclass of NSMutableAttributedString.
Douglas Davidson
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >setFont (From: Roland Silver <email@hidden>) |