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

Re: openURL Question- corrections


  • Subject: Re: openURL Question- corrections
  • From: Sherm Pendley <email@hidden>
  • Date: Wed, 11 Jun 2003 00:07:34 -0400

On Tuesday, June 10, 2003, at 11:35 PM, ettore wrote:

I still don't know what the documentation "exactly" means....

The top-level description of NSWorkspace mentions opening files, but doesn't say anything about remote URLs - perhaps the openURL: method is only intended for use with file:// URLs. Further evidence for that is it's synchronous nature - the method doesn't return until the resource is completely downloaded. That would certainly explain it's flakiness when faced with an http:// URL.

Have you taken a look at NSURLHandle? It gives you more detailed error reporting, and it's asynchronous - so you can show your users its progress. You could download the contents of the URL to a temporary file, and then use NSWorkspace's openFile: method to open the file once the download is complete.

sherm--

"When the program is being tested, it is too late to make design changes."

-- The Tao of Programming
_______________________________________________
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: openURL Question- corrections (From: ettore <email@hidden>)

  • Prev by Date: Re: startup item
  • Next by Date: Re: other StatupItems question
  • Previous by thread: Re: openURL Question- corrections
  • Next by thread: Re: startup item
  • Index(es):
    • Date
    • Thread