On 20.03.2013, at 16:23, Mr. Gecko <grmrge...@gmail.com> wrote:

> How can I watch for file changes? E.G. I open a file in Text Edit, I change 
> the file by adding a few words, I save the file. After the file is saved, 
> I'll like to know it was saved.
> 
> I need to know how to do this both in 10.8 and 10.4. E.G. For directories in 
> 10.8, I use FSEventStreamCreate. For directories in 10.4, I use 
> FNSubscribeByPath.

You can use kqueue or some wrapper like UKKQueue 
(http://zathras.de/angelweb/sourcecode.htm)
or VDKQueue (https://github.com/bdkjones/vdkqueue). I think kqueue is available 
in 10.4, but
better check for yourself. 


Cheers, 

Felix


_______________________________________________

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

Reply via email to