• 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
suppressing a browser opening a link
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

suppressing a browser opening a link


  • Subject: suppressing a browser opening a link
  • From: Jeff Martirano <email@hidden>
  • Date: Mon, 29 Apr 2002 00:00:21 -0700

I have a NSTextView rendering simple html:

[[textView layoutManager] replaceTextStorage: htmlStorage];


I am also opening up links within the same textview with this method:

- (BOOL)textView:(NSTextView *)textView clickedOnLink:(id)link atIndex:(unsigned)charIndex

This all works fine, except that in addition to the url that the user clicked on being loaded into the text field (desired), it also opens the url in the default browser for that user (undesired).

I'm not sure where to even start looking for a method to suppress this behavior. Assistance is appreciated.

Jeff
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: suppressing a browser opening a link
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: Socket Connections
  • Next by Date: Re: Socket Connections
  • Previous by thread: ON Docs
  • Next by thread: Re: suppressing a browser opening a link
  • Index(es):
    • Date
    • Thread