RE: creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3

2013-06-05 Thread Cianflone, Chris
m] on behalf of Sean McBride [s...@rogue-research.com] Sent: Monday, June 03, 2013 12:51 PM To: Quincey Morris Cc: cocoa-dev@lists.apple.com Subject: Re: creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3 On Mon, 3 Jun 2013 10:44:24 -0700, Qu

Re: creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3

2013-06-03 Thread Sean McBride
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() do

Re: creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3

2013-06-03 Thread Quincey Morris
On Jun 3, 2013, at 09:58 , "Sean McBride" wrote: > NSTemporaryDirectory() is an old path-based API. Perhaps the newer URL-based > APIs (URLForDirectory:inDomain:appropriateForURL:create:error:) might return > a more appropriate temp directory... In this document: https://developer.a

Re: creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3

2013-06-03 Thread Sean McBride
On Mon, 3 Jun 2013 01:17:38 -0700, Quincey Morris said: >The sample code tries to create a subdirectory inside the directory >pointed to by NSTemporaryDirectory(). If this code is running in the >context of an app sandbox, then there should be no problem creating a >subdirectory in its temp dir. I

Re: creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3

2013-06-03 Thread Kyle Sluder
On Jun 3, 2013, at 1:17 AM, Quincey Morris wrote: > On Jun 1, 2013, at 14:04 , Kyle Sluder wrote: > >> Spotlight importers run within a worker process; thus, they inherit the >> sandbox of the worker process, not the sandbox of your app (which might >> not even be running). > > The part of th

Re: creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3

2013-06-03 Thread Quincey Morris
On Jun 1, 2013, at 14:04 , Kyle Sluder wrote: > Spotlight importers run within a worker process; thus, they inherit the > sandbox of the worker process, not the sandbox of your app (which might > not even be running). The part of this line of thinking that I don't understand is why the worker p

Re: creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3

2013-06-03 Thread Kyle Sluder
On Jun 2, 2013, at 2:16 PM, "Cianflone, Chris" wrote: > Just to be clear too, I was running into the problem first when debugging in > Xcode. Then I tried installing the plugin in /Library/Spotlight and started > seeing all these problems in the console: This _probably_ won’t work, but what i

RE: creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3

2013-06-02 Thread Cianflone, Chris
flone, Chris [ccianfl...@makemusic.com] Sent: Sunday, June 02, 2013 4:16 PM To: Kyle Sluder; cocoa-dev@lists.apple.com Subject: RE: creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3 << I'm kind of curious why your Spotlight importer ne

RE: creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3

2013-06-02 Thread Cianflone, Chris
e Sluder [k...@ksluder.com] Sent: Saturday, June 01, 2013 4:04 PM To: Cianflone, Chris; cocoa-dev@lists.apple.com Subject: Re: creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3 On Sat, Jun 1, 2013, at 11:45 AM, Cianflone, Chris wrote: > I get

Re: creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3

2013-06-01 Thread Kyle Sluder
On Sat, Jun 1, 2013, at 11:45 AM, Cianflone, Chris wrote: > I get the same output for our 32-bit and 64-bit builds. Surely we must > still be able to create temp files? Spotlight importers run within a worker process; thus, they inherit the sandbox of the worker process, not the sandbox of your a

creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3

2013-06-01 Thread Cianflone, Chris
Hi all, I posted this originally on the spotlight-dev list but now that I have some sample code that is failing and it is starting to look like a sandboxing issue, I thought I'd try the cocoa-dev list where I have been seeing some spotlight questions too. Basically, the subject says it all. W