Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: File Alteration Monitor and Timers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File Alteration Monitor and Timers



> Currently, I have a small program that keeps waiting for a file to be
> created to take action uppon that creation. Right now, to check if the
> file exists, I try to open it for reading. Isn't there some sort of
> File Alteration Monitor SDK or somesuch I could use so that it
> wouldn't be so heavy?

It's called kqueue. It's a standard BSD thing, not really Mac-specific, so
you won't find it in the Carbon or Cocoa docs. This should get you started:

<http://developer.apple.com/documentation/Performance/Conceptual/FileSystem/
Articles/TrackingChanges.html>

<http://developer.apple.com/documentation/Darwin/Reference/ManPages/man2/kqu
eue.2.html>

<http://developer.apple.com/samplecode/FileNotification/FileNotification.htm
l>


--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 665-7007 voice


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >File Alteration Monitor and Timers (From: AndrĂ© Medeiros <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.