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

Re: Changing Fonts in NSTexView


  • Subject: Re: Changing Fonts in NSTexView
  • From: Andreas Mayer <email@hidden>
  • Date: Thu, 11 Jul 2002 14:30:53 +0200

Am Mittwoch den, 10. Juli 2002, um 21:12, schrieb Tom Gray:

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].

This is the way I do it:

NSFont* font;

// set terminal font
font = [NSFont userFixedPitchFontOfSize:0.0];
[terminalOutlet setFont:font];

terminalOutlet is a *NSTextView object.
While I'm just using the default fixes pitch font, any other should work the same.


bye. Andreas.
_______________________________________________
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.

References: 
 >Changing Fonts in NSTexView (From: Tom Gray <email@hidden>)

  • Prev by Date: Memory leak in printf?
  • Next by Date: Re: NSTask, NSFileHandle, readInBackgroundAndNotify and avoiding polling
  • Previous by thread: Re: Changing Fonts in NSTexView
  • Next by thread: Programmatic NSWindows
  • Index(es):
    • Date
    • Thread