• 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: Markus Hitter <email@hidden>
  • Date: Thu, 11 Jul 2002 08:22:22 +0200

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

I am trying
to set the font (and size) to Monaco. I don't know how to do this.

In InterfaceBuilder, set the default font for the NSTextView. Then, in your code, use something like

[myTestView setString:textString];

Simply appending characters to the view's content string didn't work for me unless I entered at least one character in IB into the view.


HTH,
Markus


P.S.: I've got a very basic Terminal.app which might help you to start, but probably the idea to use this GNUstep code would be even easier: just assemble a Project from the source files and it should work.
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
_______________________________________________
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: Re: Changing Fonts in NSTexView
  • Next by Date: Re: NSWindow not restoring location
  • Previous by thread: Re: Changing Fonts in NSTexView
  • Next by thread: Re: Changing Fonts in NSTexView
  • Index(es):
    • Date
    • Thread