Re: How to change default font for NSTextView?
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.