Re: Using UNCs with NSURLConnection
Re: Using UNCs with NSURLConnection
- Subject: Re: Using UNCs with NSURLConnection
- From: Jens Alfke <email@hidden>
- Date: Tue, 1 Apr 2008 09:14:35 -0700
On 1 Apr '08, at 8:42 AM, Valentin Dan wrote:
I’d like to know if there’s any way to use a UNC path with a
NSURLConnection object ? Can the UNC perhaps be transformed in a
NSURL ?
I had to look up UNC on Wikipedia; I think what you're talking about
is a type of path string used on Windows to identify resources on a
network?
http://en.wikipedia.org/wiki/Path_(computing)#Uniform_Naming_Convention
The issue here isn't the syntax, it's the protocol. Since this is from
Windows, I'd guess that resolving a UNC involves some combination of
ActiveDirectory to locate resources on the network, and SMB to access
the files. Mac OS X has some support for ActiveDirectory (via
OpenDirectory APIs) and SMB (presumably using Unix system calls to
mount filesystems).
But I'm pretty certain that, even if you could map a UNC into a URL,
NSURLConnection doesn't support the URL schemes needed to access it.
Out of the box it basically supports http:, https:, ftp: and file:.
You could try some web-searching to see if anyone else has written Mac
code to work with UNCs.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden