Re: typingAttributes?
Re: typingAttributes?
- Subject: Re: typingAttributes?
- From: Douglas Davidson <email@hidden>
- Date: Thu, 5 Jun 2003 09:24:05 -0700
On Thursday, June 5, 2003, at 5:38 AM, Matthew Weinstein wrote:
I'm trying to find some documentation on setTypingAttributes in
NSTextView. My program inserts text, colorizes it, but then I want to
set the insertion point and make sure that the color of the text that
will be typed will be the same. I think the above method is the one I
want, but whoa! no docs.
The typing attributes are just an attribute dictionary like that you
would set on a range of characters in an attributed string. They
contain the attributes that should be applied to the next typed
character. NSTextView has to maintain these separately from the
attributes on existing text; for example, if there is a zero-length
selection, and the user chooses "Bold", then no text changes, but the
typing attributes do, so that the next typed character will be bold.
Douglas Davidson
_______________________________________________
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.