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_%28computing%29#Uniform_Naming_ConventionThe 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
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]