Re: Removing NSLinkAttributeName doesn't remove the other attributes
Re: Removing NSLinkAttributeName doesn't remove the other attributes
- Subject: Re: Removing NSLinkAttributeName doesn't remove the other attributes
- From: Glen Simmons <email@hidden>
- Date: Wed, 1 Mar 2006 20:10:27 -0600
On Mar 1, 2006, at 5:48 PM, Douglas Davidson wrote:
On Mar 1, 2006, at 12:27 PM, Glen Simmons wrote:
I'm handling the addition / editing / removal of links in an
NSTextView myself. Adding / editing links works fine, but removing
them, not so much. The removal of the link attribute works, but
the text is not updated to remove the other attributes (blue
color, underline). What am I missing? Here's what I'm doing:
You don't say how the links are created. Try logging the
description of the text storage to see if you have extra attributes.
Duh. For some reason my code was adding what was returned from
linkTextAttributes manually. Changed to just adding / removing the
link attribute and problem solved. Sorry for the noise and thanks for
pointing me in the right direction.
Thanks,
Glen Simmons
_______________________________________________
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