Re: cross-process file open notifications

2010-02-08 Thread James Bucanek
Alexander Cohen wrote (Wednesday, February 3, 2010 2:50 PM -0500): Is there any way in cocoa to get some sort of notifications when any process opens or closes any file? The reason i need this is because i need to watch the system and do a certain task ever

Re: cross-process file open notifications

2010-02-03 Thread Alexander Cohen
Unfortunately, the files i need to watch could be anywhere on the system. So i would need something more like a filename only watch and not a complete path. AC On Feb 3, 2010, at 6:15 PM, Jerry Krinock wrote: > > On 2010 Feb 03, at 14:28, Jens Alfke wrote: > >> FSEvents notifies you when a pa

Re: cross-process file open notifications

2010-02-03 Thread Alexander Cohen
I can't put any code into the dylib. It's library that's not being developed anymore but many users have it and use it. We have a new approach but the dylib has a sort of lock on some things we need. Because of this, we've decided to watch for usage of this dylib and when there is no usage, we c

Re: cross-process file open notifications

2010-02-03 Thread Jerry Krinock
On 2010 Feb 03, at 14:28, Jens Alfke wrote: > FSEvents notifies you when a particular directory (or anything inside it) > changes. Or, preferably, if your process does not need to be running to do other stuff, you could set up a launchd task to watch a particular directory and launch your pro

Re: cross-process file open notifications

2010-02-03 Thread Jens Alfke
On Feb 3, 2010, at 1:50 PM, Alexander Cohen wrote: Is there any way in cocoa to get some sort of notifications when any process opens or closes any file? I'm pretty sure there isn't. The rate at which those notifications were sent would be pretty horrific (ever run fs_usage on all proces

Re: cross-process file open notifications

2010-02-03 Thread Dave Carrigan
On Feb 3, 2010, at 1:54 PM, Dave Carrigan wrote: > > On Feb 3, 2010, at 1:50 PM, Alexander Cohen wrote: > >> Is there any way in cocoa to get some sort of notifications when any process >> opens or closes any file? The reason i need this is because i need to watch >> the system and do a certa

Re: cross-process file open notifications

2010-02-03 Thread Dave Carrigan
On Feb 3, 2010, at 1:50 PM, Alexander Cohen wrote: > Is there any way in cocoa to get some sort of notifications when any process > opens or closes any file? The reason i need this is because i need to watch > the system and do a certain task every time a particular dylib is loaded by > an app

cross-process file open notifications

2010-02-03 Thread Alexander Cohen
Is there any way in cocoa to get some sort of notifications when any process opens or closes any file? The reason i need this is because i need to watch the system and do a certain task every time a particular dylib is loaded by an application. thx AC___