Re: Sandboxing die.die.die
Re: Sandboxing die.die.die
- Subject: Re: Sandboxing die.die.die
- From: Kyle Sluder <email@hidden>
- Date: Thu, 23 Aug 2012 17:47:18 -0700
On Aug 23, 2012, at 5:41 PM, Graham Cox <email@hidden> 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 (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