• 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
Setting the default font of an NSTextView...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Setting the default font of an NSTextView...
      • From: "Shawn Erickson" <email@hidden>
  • Prev by Date: Re: Change text size in NSTables
  • Next by Date: Re: Setting the default font of an NSTextView...
  • Previous by thread: Re: select a window
  • Next by thread: Re: Setting the default font of an NSTextView...
  • Index(es):
    • Date
    • Thread