Hi, Same question with a new spin :) ...
How can I access (from Cocoa, Objective-C code) a path like : \\192.1.1.1\c$\SomeDir\AnotherOne\SomePicture.jpg ? I need to load that picture in a table view, so I need the NSData object and the connection should be able to authenticate (perhaps a NSURLConnection ?). Thanks ! ___________________________________________________________________ Valentin Dan, Software Developer Direct: +1 905 886 1833 ext.3047 Email: [EMAIL PROTECTED] Office: +40 356-710158 Masstech Group Inc. Fax: +40 256-220912 http://www.masstechgroup.com THIS MESSAGE IS INTENDED ONLY FOR THE ADDRESSEE. IT MAY CONTAIN PRIVILEGED OR CONFIDENTIAL INFORMATION.ANY UNAUTHORIZED DISCLOSURE IS STRICTLY PROHIBITED.IF YOU HAVE RECEIVED THIS MESSAGE IN ERROR, PLEASE NOTIFY US IMMEDIATELY SO THAT WE MAY CORRECT THE RECORDS. PLEASE THEN DELETE THE ORIGINAL MESSAGE. THANK YOU. -----Original Message----- From: Jens Alfke [mailto:[EMAIL PROTECTED] Sent: 1 aprilie 2008 19:15 To: Valentin Dan Cc: cocoa-dev@lists.apple.com; Constantin Sirb; Dan Tascau Subject: Re: Using UNCs with NSURLConnection 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_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 No virus found in this incoming message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.22.2/1353 - Release Date: 31.03.2008 18:21 No virus found in this outgoing message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.22.2/1353 - Release Date: 31.03.2008 18:21 _______________________________________________ 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]