Dear list, I have implemented an editor where I use UKKQueue to handle changes to the file by other apps. The problem is that I don't get a notification if the file is committed to a CVS repository (or an SVN repository, for that matter). Looking at the file on disk, CVS does change the file because it updates the $Id:$ tag. If I change the file on disk with, for example, vi, then I get the notification. So why not when CVS makes the change? What's more, if I save the file in the editor then the contents of the file on disk are not updated. It seems like CVS has moved my file somewhere else but the OS knows about that.
For the UKKQueue experts, I initialise my path watcher like this: UKKQueue *queue = [UKKQueue sharedFileWatcher]; [queue addPathToQueue: [aDoc pathOnDisk] notifyingAbout: UKKQueueNotifyAboutWrite]; I suspect that I'm not understanding something fundamental about how the OS is handling files and/or how CVS interacts with that. Any insights gratefully received, Martin ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Martin Hewitson Albert-Einstein-Institut Max-Planck-Institut fuer Gravitationsphysik und Universitaet Hannover Callinstr. 38, 30167 Hannover, Germany Tel: +49-511-762-17121, Fax: +49-511-762-5861 E-Mail: martin.hewit...@aei.mpg.de WWW: http://www.aei.mpg.de/~hewitson ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _______________________________________________ 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com