> 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