On Mon, 3 Jun 2013 10:44:24 -0700, Quincey Morris said: >> Note: The /tmp directory is not accessible from sandboxed apps. You >must use the NSTemporaryDirectory function to obtain a temporary >location for your app’s temporary files. > >That seems to answer your comment (NSTemporaryDirectory() does seem to >be the right API) and Kyle's last comment (sandboxing doesn't >intrinsically disable file writing -- it merely restricts places where >files can be written without entitlements to a few known locations).
Ouch. In fact, the word "must" is troubling. I'm using URLForDirectory:inDomain:appropriateForURL:create:error: with NSItemReplacementDirectory successfully with App Sandbox. Hopefully they mean "must" as opposed to hardcoding /tmp. >The deeper question is whether a spotlight worker process is running in >an *app* sandbox at all, or whether it has some other kind of security >context. Indeed. Cheers, -- ____________________________________________________________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montréal, Québec, Canada _______________________________________________ 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