Re: Another NSText... problem: a sticky attribute
Re: Another NSText... problem: a sticky attribute
- Subject: Re: Another NSText... problem: a sticky attribute
- From: Douglas Davidson <email@hidden>
- Date: Wed, 5 May 2004 16:44:40 -0700
On May 5, 2004, at 4:23 PM, Ondra Cada wrote:
I've checked both NSTextView/NSText and NSTextStorage for some methods
which would control this "empty selection temporary attribute" (or
what is the proper way to call it), but found nothing. May I please
ask for a pointer where this is documented, or at least an advice how
to change the above code so that, when typing into the text view, the
newly typed text does *not* have the link attribute?
We call it the "typing attributes". You could remove the link
attribute from the typing attributes by hand, but the easiest fix here
probably would be to just change the order of your operations. The
typing attributes are set when the selection changes, so try simply
removing the link attribute from the space before changing the
selection. Alternatively, you could insert the space as an attributed
string with the attributes for the previous text, minus the link.
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.