Re: Handling of paths through sandbox
Re: Handling of paths through sandbox
- Subject: Re: Handling of paths through sandbox
- From: Gabriel Zachmann via Cocoa-dev <email@hidden>
- Date: Wed, 12 Feb 2020 17:56:02 +0100
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 that the path names can get very long.
And I am going to show them to the user.
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.
Best regards, Gabriel
> If the latter, why get partial paths at all, why not just make an array of
> URLs?
>
>
_______________________________________________
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