Re: Adding text attributes to current cursor position
Re: Adding text attributes to current cursor position
- Subject: Re: Adding text attributes to current cursor position
- From: Douglas Davidson <email@hidden>
- Date: Mon, 24 Feb 2003 09:47:18 -0800
On Friday, February 21, 2003, at 9:04 PM, Edwin Zacharias wrote:
I'm trying to add and remove attributes that will be
set to the text typed in a text view. Usually this it
is set to the attributes of the preceeding character,
but it's possible to change things like the font or
color for the insertion point. Is there an easy way
to do this with other attributes, suck as
NSLinkAttributeName?
You are speaking of the typingAttributes, which are maintained by the
text view but can be set programmatically. I'm not sure whether it
would be convenient to add NSLinkAttributeName this way, though, since
it usually has a single attribute applied to a determinate range of
characters, somewhat in contrast to other attributes such as colors,
underlines, etc.
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.