Setting the default font of an NSTextView...
Setting the default font of an NSTextView...
- Subject: Setting the default font of an NSTextView...
- From: Nick Zitzmann <email@hidden>
- Date: Fri, 7 Apr 2006 08:34:31 -0600
I already searched the archives, and not one person had a solution to
the problem of setting a text view's default font that works. I have
tried the following:
1. Setting the font using the font panel in IB
2. Using -[NSTextView setFont:]
3. Using -[NSTextView setTypingAttributes:]
4. Using -[NSTextStorage setFont:]
5. Using -[NSTextStorage setAttributedString:] with an
NSAttributedString equal to @"" and the font as the only attribute
No matter what I do, when the first character is typed into the
NSTextView, the font always reverts back to Helvetica 12.
So is there any way at all to change the default font of an
NSTextView, and if so, then what is it? Nothing I've tried so far
actually works...
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden