• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Removing NSLinkAttributeName doesn't remove the other attributes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Removing NSLinkAttributeName doesn't remove the other attributes (From: Glen Simmons <email@hidden>)
 >Re: Removing NSLinkAttributeName doesn't remove the other attributes (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: interface builder's communication problem
  • Next by Date: Re: Macbook Pro software update
  • Previous by thread: Re: Removing NSLinkAttributeName doesn't remove the other attributes
  • Next by thread: Live dragging - Need Help
  • Index(es):
    • Date
    • Thread