Re: File Close Event on Mac OS X
Re: File Close Event on Mac OS X
- Subject: Re: File Close Event on Mac OS X
- From: Mike Smith <email@hidden>
- Date: Tue, 5 Jul 2005 12:37:39 -0700
On Jul 5, 2005, at 7:19 AM, Imran Kazi wrote: I want to get the file close event for any of the files in certain configurable folders. Is there any existing API or sample code provided by Apple for getting that event? You cannot get notifications for specific folders; files don't exist "in" folders, only the names by which they are looked up do, and a single file may have more than one name.
You can track the opening of files in order to determine by which name they *may* have been looked up, and then react to their closing via the KPI that Jerry mentioned.
Without knowing what you're trying to achieve, I can't offer you any better advice. It's not practical for the system to keep track of an arbitrary set of files/folders, so you need to filter yourself based on your own criteria.
= Mike |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden