• 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: How to change default font for NSTextView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to change default font for NSTextView?


  • Subject: Re: How to change default font for NSTextView?
  • From: Manfred Lippert <email@hidden>
  • Date: Wed, 13 Feb 2002 21:10:29 +0100

> However, setFont: does NOT work until AFTER there is some text in the
> NSTextView.

This is not a problem in my app, and it may be intentionally.

> As well, if the user deletes all the text in the NSTextView, the font
> reverts to the default font.

Nope, I cannot see this problem in my app. To init/clear a TextView, I make
the following calls:

[textView setFont:[NSFont systemFontOfSize:12]];
[textView setString:@""];

If the user types some text, selects all, deletes all and types again, the
text will still show up in the system font (Lucida Grande - _not_
Helvetica).
It works perfectly for me.

Regards,
Mani
_______________________________________________
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: How to change default font for NSTextView?
      • From: Manfred Lippert <email@hidden>
References: 
 >Re: How to change default font for NSTextView? (From: David Rehring <email@hidden>)

  • Prev by Date: Re: How to change default font for NSTextView?
  • Next by Date: Re: How to change default font for NSTextView?
  • Previous by thread: Re: How to change default font for NSTextView?
  • Next by thread: Re: How to change default font for NSTextView?
  • Index(es):
    • Date
    • Thread