On Fri, Oct 7, 2011 at 1:06 PM, Chris Paveglio <chris_paveg...@yahoo.com> wrote:
> Thanks.
> One thing I found out after 6 more hours... I was not forming my URL 
> correctly when I typed part of it out by hand. <shoots self in head with 
> finger>
> @"file://localhost/Volumes/..." instead of "@"file://Volumes/..."

The first is valid, but you can also use file:///Volumes/… (note the
_three_ slashes).

If you're constructing a URL, however, you can instead use +[NSURL
fileURLWithPath:@"/Volumes"] instead of hardcoding the URL. It will do
the right thing with respect to prefixing and escaping.

--Kyle Sluder
_______________________________________________

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 arch...@mail-archive.com

Reply via email to