• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
FSEventsFlushAsync() returns 0?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: FSEventsFlushAsync() returns 0?
      • From: Quinn <email@hidden>
    • Re: FSEventsFlushAsync() returns 0?
      • From: James Bucanek <email@hidden>
  • Prev by Date: Re: Request For Comments On File Insert API
  • Next by Date: Re: FSEventsFlushAsync() returns 0?
  • Previous by thread: Re: Request For Comments On File Insert API
  • Next by thread: Re: FSEventsFlushAsync() returns 0?
  • Index(es):
    • Date
    • Thread