Re: How do I set a NSTextView's font in Interface Builder?
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