• 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 do I set a NSTextView's font in Interface Builder?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I set a NSTextView's font in Interface Builder?


  • Subject: Re: How do I set a NSTextView's font in Interface Builder?
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 24 Mar 2017 14:08:09 -0700

> On Mar 24, 2017, at 11:28 AM, Keary Suska <email@hidden> wrote:
>
> I don’t believe that is actually true. Attributes *can* apply to an empty range.

It may be that the serialized form of the string in the nib doesn’t preserve the attributes. Or that they’re not preserved by the view when the user types the first character. (It’s been about eight years since I dealt with this problem…)

> Alternatively, or additionally, I believe if you call setTypingAttributes: on an empty text view that any new types text will use the specified attributes.

Yes, you can do that too.

—Jens
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: How do I set a NSTextView's font in Interface Builder?
      • From: Keary Suska <email@hidden>
References: 
 >How do I set a NSTextView's font in Interface Builder? (From: Daryle Walker <email@hidden>)
 >Re: How do I set a NSTextView's font in Interface Builder? (From: Jens Alfke <email@hidden>)
 >Re: How do I set a NSTextView's font in Interface Builder? (From: Keary Suska <email@hidden>)

  • Prev by Date: Re: -[NSWindow makeFirstResponder:] error when NSDrawer is involved
  • Next by Date: Re: How do I set a NSTextView's font in Interface Builder?
  • Previous by thread: Re: How do I set a NSTextView's font in Interface Builder?
  • Next by thread: Re: How do I set a NSTextView's font in Interface Builder?
  • Index(es):
    • Date
    • Thread