Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
FileNotification
Last Revision: | Version 1.2, 2005-10-27 Updated to produce a universal binary. No code changes were required. |
Build Requirements: | Xcode |
Runtime Requirements: | Mac OS X 10.3 |
Demonstrates how to use the kqueue mechanism to be notified when the contents of a folder change. Efficient method for detecting when a file is added, deleted, or renamed. This sample creates a simple MP thread which watches a few defined locations for modifications, then posts the event back to the main queue to display the relevant kevent information to the main window.
Copyright © 2005 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2005-10-27