• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSString stringByAbbreviatingWithTildeInPath and Sandboxing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSString stringByAbbreviatingWithTildeInPath and Sandboxing (From: Jon Baumgartner <email@hidden>)
 >Re: NSString stringByAbbreviatingWithTildeInPath and Sandboxing (From: Kyle Sluder <email@hidden>)
 >Re: NSString stringByAbbreviatingWithTildeInPath and Sandboxing (From: Jon Baumgartner <email@hidden>)

  • Prev by Date: Re: NSString stringByAbbreviatingWithTildeInPath and Sandboxing
  • Next by Date: Re: drawRect runs twice, bounds are changed in between
  • Previous by thread: Re: NSString stringByAbbreviatingWithTildeInPath and Sandboxing
  • Next by thread: How to add a window to a window list(or open document list) on a dock tile menu?
  • Index(es):
    • Date
    • Thread