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: email@hidden
- Date: Sat, 23 Feb 2002 12:42:30 -0800
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.
Ben Haller
Stick Software
_______________________________________________
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.