• 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: After inserting link into text, link continues as user types
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >After inserting link into text, link continues as user types (From: Philip Dow <email@hidden>)

  • Prev by Date: Custom object in core data.
  • Next by Date: Re: Find color's change in a NSString (attributed)
  • Previous by thread: After inserting link into text, link continues as user types
  • Next by thread: Sorting array of strings by string length
  • Index(es):
    • Date
    • Thread