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

Re: suppressing a browser opening a link


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

i logged out and back in, then set my System Preferences/Internet/Web to OmniWeb (even though it was already set there), and lo and behold my app started handling the links without passing it off to the browser too. this must just be a problem with my setup. sometimes my default browser configuration is erratic. i've had other weird "Preferred Browser" occurrences before, such as Word trying to open regular html urls, even though it was obviously not set as my preferred browser.


thanks for your help.




On Monday, April 29, 2002, at 10:58 , Douglas Davidson wrote:


On Monday, April 29, 2002, at 10:35 AM, Jeff Martirano wrote:

both YES and NO, depending on the situation. some links i want to open in my textview, and others i want to open in the browser. i can put the conditions on whether to open in the browser once i know how to suppress that behavior.

If you return YES from the delegate method textView:clickedOnLink:atIndex: then the text view will assume that you have handled the link yourself, and will not attempt to open it in a browser.

Douglas Davidson
_______________________________________________
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.

References: 
 >Re: suppressing a browser opening a link (From: Douglas Davidson <email@hidden>)

  • Prev by Date: dimmed subview
  • Next by Date: Database Engine
  • Previous by thread: Re: suppressing a browser opening a link
  • Next by thread: dimmed subview
  • Index(es):
    • Date
    • Thread