On Aug 23, 2012, at 5:41 PM, Graham Cox <graham....@bigpond.com> wrote:

> 
> Hang on, given the above string (which as far as I can tell is a 'proper' URL 
> and not just a path), +URLWithString works fine and 
> +fileURLWithPath:isDirectory makes a complete hash of it.

Well, I was operating under the assumption that you actually provided us with 
the string you were using, not a percent-unencoded variant thereof. Details 
matter.

> 
> What is +URLWithString: for, if not this?

You're using it correctly, but I'm suggesting that the better approach would 
not use it at all. Rather than constructing a URL string and creating an NSURL 
out of it, it's better to create a file path and create an NSURL with 
+fileURLWithPath::. It seems to be causing you issues, but it is the more 
correct approach.

--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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to