• 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
Changing Fonts in NSTexView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changing Fonts in NSTexView


  • Subject: Changing Fonts in NSTexView
  • From: Tom Gray <email@hidden>
  • Date: Wed, 10 Jul 2002 15:12:16 -0400

Howdy,

As always, thanks in advance.

I am an old C programmer new to Cocoa. I am attempting to emulate an old
style ANSI terminal with an NSTextView and an NSMutableString. I am trying
to set the font (and size) to Monaco. I don't know how to do this.

I initially tried to use an NSMutableAttributedString, but apparently it is
the attributes that are mutable not the string.

I then tried to set the font with an instance of NSFont but for some reason
my NSMutableString when displayed in my NSTextView does not seem to take on
the font or size that I set with [myNSFont set].

I know this should be easy, but, I simply cannot set the font for an
NSMutableString in a NSTextView. Surely this has to be EASY!?

What am I doing wrong?


--

Tom Gray
email@hidden
_______________________________________________
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.

  • Follow-Ups:
    • Re: Changing Fonts in NSTexView
      • From: Andreas Mayer <email@hidden>
    • Re: Changing Fonts in NSTexView
      • From: Markus Hitter <email@hidden>
    • Re: Changing Fonts in NSTexView
      • From: Lukas Westermann <email@hidden>
  • Prev by Date: GNU Terminal Project
  • Next by Date: Programmatic NSWindows
  • Previous by thread: GNU Terminal Project
  • Next by thread: Re: Changing Fonts in NSTexView
  • Index(es):
    • Date
    • Thread