如何在 mac osx 10.6 中使用 fsevents 创建观察程序
我正在尝试使用 fsevents.h 文件获取文件事件通知。
我正在使用 Mac OS X 10.6 和 XCode 3.1.4,其中我在以下四个位置找到了 fsevents.h
- /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers /FSEvents.h
- /Xcode3.1.4/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers
- /Developer/SDKs/MacOSX10.5 .sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/CoreServices.framework/
- Versions /A/Frameworks/CarbonCore.framework/Versions/A/Headers
我在访问 fsevents.h 时遇到以下问题
1) 在上述四个位置中,应该包含其中一个,因为除非我输入以下包含语法,否则 fsevents 不会被包含在内 包括<../../../../Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers/ fsevents.h>
2)在哪里可以找到其原型在fsevents.h中使用“extern”关键字声明的函数定义
I m trying to get file event notifications using fsevents.h file.
I m working with Mac OS X 10.6 and XCode 3.1.4 in which i found fsevents.h in four following locations
- /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers/FSEvents.h
- /Xcode3.1.4/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers
- /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers
- /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers
I have following issues in accessing fsevents.h
1) Out of above four locations which one should be included since fsevents is not getting included unless i put following include syntax
include<../../../../Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers/fsevents.h>
2) Where could I find the function definition whose prototypes are declared in fsevents.h using "extern" keyword
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您应该
了解更多信息,请查看 http://developer.apple.com/mac/library/documentation/Darwin/Conceptual/FSEvents_ProgGuide/UsingtheFSEventsFramework/UsingtheFSEventsFramework.html
I think you should just
For more info take a look at http://developer.apple.com/mac/library/documentation/Darwin/Conceptual/FSEvents_ProgGuide/UsingtheFSEventsFramework/UsingtheFSEventsFramework.html