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 <j...@bergenstreetsoftware.com> 
> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to