FSEventsFlushAsync() returns 0?
FSEventsFlushAsync() returns 0?
- Subject: FSEventsFlushAsync() returns 0?
- From: James Bucanek <email@hidden>
- Date: Tue, 25 Mar 2008 15:14:08 -0700
Greetings,
I'm beginning (finally!) to integrate the File System Events API
into my application. I'm looking for historical change
information. My application does the following:
Gets the historical event ID for date in the past using FSEventsGetLastEventIdForDeviceBeforeTime()
Creates a stream using
FSEventStreamCreateRelativeToDevice() passing the sinceWhen
event ID.
Schedule the stream with FSEventStreamScheduleWithRunLoop().
Start it with FSEventStreamScheduleWithRunLoop().
Since I want everything up to now, I then immediately call
FSEventStreamEventId catchupID = FSEventStreamFlushAsync(eventStream);
According to the File System Events Programming Guide
(<http://developer.apple.com/documentation/Darwin/Conceptual/FSEvents_ProgGuide/UsingtheFSEventsFramework/chapter_4_section_7.html>)
it should return the event ID of the most current event. My
callback routine can then know that it has caught up when it
processes that event ID.
However, the value returned by FSEventStreamFlushAsync() and
stored in catchupID is 0. Am I doing something wrong or is this
a bug?
--
James Bucanek
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden