• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: setFont
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Re: setFont
  • Next by Date: Re: setFont
  • Previous by thread: Re: setFont
  • Next by thread: Re: setFont
  • Index(es):
    • Date
    • Thread