Re: After inserting link into text, link continues as user types
Re: After inserting link into text, link continues as user types
- Subject: Re: After inserting link into text, link continues as user types
- From: Martin Wierschin <email@hidden>
- Date: Mon, 20 Feb 2006 16:59:33 -0800
Under 10.4, the link inserts fine, and any text the user types
after the link, space or not, does not take on the link attribute.
Under 10.3.9, however, whatever the user types includes the link.
I'm going to guess that Apple added code to NSTextView to disallow
the link attribute from propagating via the typing attributes. You
will want to do either:
1. After you insert the new hyperlinked text, strip the
NSLinkAttributeName from the current typing attributes.
2. Override NSTextView's setTypingAttributes to disallow
NSLinkAttributeName in the proper circumstances.
Hope this helps,
~Martin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden