Create hyperlink to some text in NSTextView
        Posted  
        
            by regulus6633
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by regulus6633
        
        
        
        Published on 2010-04-11T09:34:28Z
        Indexed on 
            2010/04/11
            9:43 UTC
        
        
        Read the original article
        Hit count: 651
        
I can create a hyperlink to some url in an NSTextView using the "Link Panel". Or I can add a link manually using the NSLinkAttributeName attribute of NSAttributedString.
I don't want to make a hyperlink to some external url though, I want to be able to create a hyperlink to some text within the NSTextView. Do you know how in Pages you can set some text as a Bookmark, and then you can make a hyperlink to that bookmark? Any ideas or examples of how to go about that?
© Stack Overflow or respective owner