有一个FSEvents API,它看起来像是你需要的东西:https://developer.apple.com/library/mac/#documentation/Darwin/Conceptual/FSEvents_ProgGuide/Introduction/Introduction.html (注:该API可用于Mac OS X开发中监测文件系统的变化)