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,
>>
>> 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
> 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
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