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

Re: Setting the default font of an NSTextView...


  • Subject: Re: Setting the default font of an NSTextView...
  • From: "Shawn Erickson" <email@hidden>
  • Date: Fri, 7 Apr 2006 07:48:29 -0700

On 4/7/06, Nick Zitzmann <email@hidden> wrote:
> 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:
>
> 3. Using -[NSTextView setTypingAttributes:]

I am fairly sure that typing attributes is what you want but I believe
you have to reapply them if the selection, etc. changes. Try having a
delegate of that text view respond to
textViewDidChangeTypingAttributes: or possibly
textViewDidChangeSelection: and in one of those reapply the desired
default type attributes. (not tried this myself in any prior project)

-Shawn
 _______________________________________________
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:
    • [SOLVED] Re: Setting the default font of an NSTextView...
      • From: Nick Zitzmann <email@hidden>
References: 
 >Setting the default font of an NSTextView... (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Setting the default font of an NSTextView...
  • Next by Date: Re: Change text size in NSTables
  • Previous by thread: Setting the default font of an NSTextView...
  • Next by thread: [SOLVED] Re: Setting the default font of an NSTextView...
  • Index(es):
    • Date
    • Thread