Search code examples
objective-ccocoanotificationsobserver-pattern

Directory data change observer in Cocoa


Hi i know that in NSWorkspace is a method that check if data is changed (noteFileSystemChanged:), but i was wondering if there is a possibility to automaticly observe for data change on specified path (ex. new file in directory).

Thanks for reply !


Solution

  • Check out the FSEvents (file system events) API. You can ask to be notified of file- or folder-level changes... puny human!