Re: Handling of paths through sandbox

2020-02-12 Thread Quincey Morris via Cocoa-dev
On Feb 12, 2020, at 08:56 , Gabriel Zachmann wrote: > > So rather than having the last part being chopped off (which is the important > part), > I would like to remove the beginning of the path, since that is unimportant. For partial paths, you can try converting the URLs to URLComponents,

Re: Handling of paths through sandbox

2020-02-12 Thread Gabriel Zachmann via Cocoa-dev
>> >> The problem is that the path names can get very long. >> And I am going to show them to the user. > > There is support in AppKit for displaying file paths to the user. > Unfortunately it's been I guess I should have said that I display the paths as a simple text overlay in my

Re: Handling of paths through sandbox

2020-02-12 Thread Jens Alfke via Cocoa-dev
> On Feb 12, 2020, at 8:56 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > The problem is that the path names can get very long. > And I am going to show them to the user. There is support in AppKit for displaying file paths to the user. Unfortunately it's been long enough since I used it

Re: Handling of paths through sandbox

2020-02-12 Thread Gabriel Zachmann via Cocoa-dev
Thanks a lot for your response. >> Problem is that I can't just do >> >> [ array_with_all_images addObject: [path substringFromIndex: ([dir_to_scan >> length] + 1)] ]; > > What is this supposed to be an array of? File names? Partial paths underneath > ~/Pictures? Exactly. The problem is