Re: NSString stringByAbbreviatingWithTildeInPath and Sandboxing
Re: NSString stringByAbbreviatingWithTildeInPath and Sandboxing
- Subject: Re: NSString stringByAbbreviatingWithTildeInPath and Sandboxing
- From: Kyle Sluder <email@hidden>
- Date: Thu, 29 Jan 2015 07:55:06 -0800
Even in a sandbox, you can get the user’s home directory using getpwuid(3) as mentioned in the docs: https://developer.apple.com/library/mac/documentation/Security/Conceptual/AppSandboxDesignGuide/DesigningYourSandbox/DesigningYourSandbox.html
So you could just search through your string and replace occurrences of that with a tilde, but then you have to worry about encodings and all that muck. Since there’s no security risk here, it’s reasonable to ask that the existing API work in a sandbox too.
--Kyle Sluder
> On Jan 29, 2015, at 7:45 AM, Jon Baumgartner <email@hidden> wrote:
>
> I’m happy to do this, but is this really a bug? I was just thinking there might be an alternate way to accomplish this.
>
>> On 1/27/2015 4:03 PM, Kyle Sluder wrote:
>> Could you please file a Radar describing your use case and share the
>> number here?
>>
>>
>
_______________________________________________
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