Monitor a folder for changes in iOS

Wed, Aug 7

Cocoanetics explains how to use GCD to monitor a folder for changes in an iOS app:

There is no notification to be gotten if the user adds or removes files to your app’s documents folder. The only way to update your list of files in that case is to monitor the folder for changes. But since iOS 4 – together with GCD – Apple added a simpler method for monitoring a vnode, dispatch sources.