Re: Changing the default color in an NSTextView?
Re: Changing the default color in an NSTextView?
- Subject: Re: Changing the default color in an NSTextView?
- From: Chris Gehlker <email@hidden>
- Date: Sat, 23 Feb 2002 13:57:20 -0700
On 2/23/02 1:42 PM, "email@hidden" <email@hidden> wrote:
>
> Adding the colored string leaves the
>
> textView in a state where the next thing the user types will also be
>
> blue.
>
> Apparently NSTextView looks back a character to infer the attributes of
>
> the
>
> next character typed. I can see how you might want that in most
>
> applications. I don9t want it, however, and I can't figure out how to
>
> turn
>
> it off. I'm currently adding a space with default attributes but that's
>
> an
>
> ugly hack.
>
>
See NSTextView's doc, in the section where it talks about typing
>
attributes. The -setTypingAttributes: method is, I believe, what you
>
want.
>
Perfect Ben. I don't know how I missed that!
--
Some people say Windows users have an inferiority complex.
That's not true. It's not a complex.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.