开发者

How can I monitor a folder with Cocoa?

开发者 https://www.devze.com 2023-02-11 12:19 出处:网络
I want to create a Cocoa application to monitor a folder for new files on Mac OS X. I know I can do this using AppleScript and Folder Actions, but how can I use ObjC and Cocoa for 开发者_JAVA百科that?

I want to create a Cocoa application to monitor a folder for new files on Mac OS X. I know I can do this using AppleScript and Folder Actions, but how can I use ObjC and Cocoa for 开发者_JAVA百科that?


Have a look at File System Events

Although, for really fine-grained monitoring the documentation points to using kqueues

0

精彩评论

暂无评论...
验证码 换一张
取 消