Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FSEventsFlushAsync() returns 0?



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:
http://lists.apple.com/mailman/options/filesystem-dev/email@hidden

This email sent to email@hidden


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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.