• 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: Need help setting font of NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Need help setting font of NSTextView
      • From: Doug Brown <email@hidden>
References: 
 >Re: Need help setting font of NSTextView (From: Doug Brown <email@hidden>)

  • Prev by Date: Re: Distributed Objects problem
  • Next by Date: Re: resizing windows in outline mode
  • Previous by thread: Re: Need help setting font of NSTextView
  • Next by thread: Re: Need help setting font of NSTextView
  • Index(es):
    • Date
    • Thread