I was thinking that’d break sandbox encapsulation. But I guess what really
matters is what you get when you do the reverse and expand the tilde?
>
> On Dec 11, 2022, at 17:58, Ben Kennedy via Cocoa-dev
> wrote:
>
>
>
>> On 11 Dec 2022, at 12:51 pm, Mike Abdullah via Cocoa-dev
>> wrote:
> On 11 Dec 2022, at 12:51 pm, Mike Abdullah via Cocoa-dev
> wrote:
>
> Have you tried -URLByResolvingSymlinksInPath? As far as I’m aware, the
> Pictures entry inside your container is a symlink to the real thing, so
> assuming you have appropriate entitlements, should be possible to resolve
Looking back, I guess you’d bump up against the sandbox with this…
>
> On Dec 11, 2022, at 16:21, Sandor Szatmari
> wrote:
>
> -stringByAbbreviatingWithTildeInPath
>
> First page in google results
>
>> On Dec 11, 2022, at 15:06, Gabriel Zachmann via Cocoa-dev
>> wrote:
>>
>>
>> I have
-stringByAbbreviatingWithTildeInPath
First page in google results
> On Dec 11, 2022, at 15:06, Gabriel Zachmann via Cocoa-dev
> wrote:
>
>
> I have an NSURL * pictures_path;
>
> By default, this is set to
>
> pictures_path = [ [NSFileManager defaultManager] URLForDirectory:
> NSPictures
Have you tried -URLByResolvingSymlinksInPath? As far as I’m aware, the Pictures
entry inside your container is a symlink to the real thing, so assuming you
have appropriate entitlements, should be possible to resolve it.
Mike.
> On 11 Dec 2022, at 10:56, Gabriel Zachmann via Cocoa-dev
> wrote
I have an NSURL * pictures_path;
By default, this is set to
pictures_path = [ [NSFileManager defaultManager] URLForDirectory:
NSPicturesDirectory
inDomain: NSUserDomainMask
appropriateForURL: nil create: NO error