Re: File Path String From Save Panel

2013-03-04 Thread Sean McBride
On Mon, 4 Mar 2013 13:22:39 -0800, Jens Alfke said: >It’s also worth noting that if you want to display path components in a >UI, you shouldn’t be working with filesystem-level methods like - >pathComponents, because the user view of the file system isn’t identical >to what’s ‘really’ there. The u

Re: File Path String From Save Panel

2013-03-04 Thread Jens Alfke
On Mar 4, 2013, at 12:38 PM, Lee Ann Rucker wrote: > The last time I cared about pathComponents wasn't for file IO, it was for a > "Recent Items" -style name disambiguator - you know, how it'll show just the > lastPathComponent until there are two that match, and then it finds the first > non

Re: File Path String From Save Panel

2013-03-04 Thread Peter Hudson
Thanks Iain and Lee Ann path was the method I needed. Peter On 4 Mar 2013, at 20:38, Lee Ann Rucker wrote: > > On Mar 4, 2013, at 8:25 AM, Peter Hudson wrote: > >> I recover the path string from a Save Panel like so :- >> >> NSArray *pathComponents = [[sp URL] pathComponents]; >> >> Whe

Re: File Path String From Save Panel

2013-03-04 Thread Lee Ann Rucker
On Mar 4, 2013, at 8:25 AM, 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 sugge

Re: File Path String From Save Panel

2013-03-04 Thread iain
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 wr

File Path String From Save Panel

2013-03-04 Thread Peter Hudson
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 ? Peter __