Re: File Path String From Save Panel
Re: File Path String From Save Panel
- Subject: Re: File Path String From Save Panel
- From: iain <email@hidden>
- Date: Mon, 04 Mar 2013 16:41:49 +0000
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 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 (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