The sandbox is within the current app. The app also has access to other shared folders like Music and so on.
NSString *appLibraryFolder = [NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES) objectAtIndex:0]; NSString *appDocumentsFolder = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0]; > On Feb 4, 2019, at 9:30 PM, Carl Hoefs <newsli...@autonomy.caltech.edu> wrote: > > iOS 12 > > Q1. In general, is an iOS app expected to determine the sandbox path to > manage its files? > > Q2. Does the sandbox behave like the "current working directory" default on > macOS? (i.e., if a function writes out a file to just "filename" with no > path, does it get written automatically to the sandbox?) > > Q3. What is the proper way to determine the app sandbox path? Is there an > app-wide runtime global? > > NSString *sandbox = > [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES) > lastObject]; > > -Carl > > _______________________________________________ > > 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/zav%40mac.com > > This email sent to z...@mac.com _______________________________________________ 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