Re: Questions regarding the sandbox in iOS
Re: Questions regarding the sandbox in iOS
- Subject: Re: Questions regarding the sandbox in iOS
- From: Carl Hoefs <email@hidden>
- Date: Tue, 05 Feb 2019 13:29:20 -0700
> On Feb 5, 2019, at 10:30 AM, Jens Alfke <email@hidden> wrote:
>
>> On Feb 5, 2019, at 9:25 AM, Carl Hoefs <email@hidden
>> <mailto:email@hidden>> wrote:
>>
>> The reason for the specific sandbox questions is that my iOS app needs to
>> call 3rd-party functions, some of which create temp files "in place" - as if
>> they did an fopen("filename.ext","w"). Such temp files appear to be written
>> "nowhere"...
>
> You can set the current directory wherever you want, via the system call
> chdir(), before calling those functions.
Yes, chdir(docsSandbox.UTF8String) works perfectly!
Thanks!
-Carl
_______________________________________________
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