Re: openURL Question- corrections
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.