On 04/03/13 16:25, Peter Hudson wrote:
I recover the path string from a Save Panel like so :-

NSArray *pathComponents = [[sp  URL]  pathComponents];

When I put them together again to use to write a file, any spaces in the file 
name are turned in %20 symbols.

Any suggestions what I am doing wrong ?


You could use the -[NSURL path] method? It returns "The path of the URL, unescaped with the stringByReplacingPercentEscapesUsingEncoding: method."

iain
_______________________________________________

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