• 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
openURL Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

openURL Question


  • Subject: openURL Question
  • From: Henry McGilton <email@hidden>
  • Date: Mon, 9 Jun 2003 14:14:09 -0700

What Ho All,
I am working with a chunk of code to create a URL to
a web page and then use NSWorkspace to open that URL.

As part of the testing process, I deliberately inject a
non-existent URL into the mix. The browser reports that
the web page does not exist.

However, I expected the openURL method to return NO to
indicate that the URL was not opened successfully.
But it returns YES.

The documentation states:

'returns YES if the location was successfully opened,
NO otherwise'

So, what does the documentation story *really* mean?

Best Wishes,
........ Henry


===============================+============================
Henry McGilton, Boulevardier | Trilithon Software
Objective-C/Java Composer | Seroia Research
-------------------------------+----------------------------
mailto:email@hidden | http://www.trilithon.com
|
===============================+============================
_______________________________________________
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: openURL Question
      • From: Matt Wood <email@hidden>
References: 
 >Re: C question for you old guys ;-) (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: Re: C question for you old guys ;-)
  • Next by Date: Re: C question for you old guys ;-)
  • Previous by thread: Re: C question for you old guys ;-)
  • Next by thread: Re: openURL Question
  • Index(es):
    • Date
    • Thread