TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Handling Filesystem Events with GCD in iOS and Cocoa

19 pointsby jemeshsuover 13 years ago

1 comment

scooprover 13 years ago
Interesting. In my autobuild[0] tool I used the FSEvent api to monitor filesystem notifications.<p>This article prompted me to revisit the documentation, to make sure I'm not doing anything too stupid. The documentation clarifies:<p>The file system events API is also not designed for finding out when a particular file changes. For such purposes, the kqueues mechanism is more appropriate.<p>The file system events API is designed for passively monitoring a large tree of files for changes. The most obvious use for this technology is for backup software. Indeed, the file system events API provides the foundation for Apple’s backup technology.<p>So the FSEvent api is more suitable for my use case, but it is useful to know this if I happen to have a different use case in the future.<p>[0] <a href="https://github.com/scoopr/autobuild" rel="nofollow">https://github.com/scoopr/autobuild</a>