用于在 iCal 中显示空闲/忙碌时间的 API(Apple 人员?)
在 Snow Leopard 中,可以在 iCal 事件中显示空闲/忙碌时间。我搜索了 CalStore.framework 的标头,但找不到任何描述该字段的属性。如何检索日历事件的忙/闲属性?
In Snow Leopard there is a possibility to show free/busy time in iCal event. I've searched the headers of CalStore.framework and couldn't find any property that describes this field. How can i retrieve free/busy property of calendar event?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
iCal 服务器有检索忙/闲的方法,请参阅:http ://www.webdav.org/specs/rfc4791.html#rfc.section.7.8.4
然而这并不简单,您必须编写自己的 API。您可以使用 NSURLRequest 和 NSURLConnection 发出服务器查询。
iCal server has a method of retrieving free/busy, see: http://www.webdav.org/specs/rfc4791.html#rfc.section.7.8.4
However it's not trivial, you will have to essentially write your own API. You issue the server queries using NSURLRequest and NSURLConnection.
当我导出 iCal 4 日历时,我注意到“忙碌”被编码为“TRANSP:OPAQUE”,“空闲”被编码为“TRANSP:TRANSPARENT”。
我在 iCal 的 Applescript 字典中找不到等效的内容。
When I export an iCal 4 calendar I notice that "busy" is coded as "TRANSP:OPAQUE" and "free" as "TRANSP:TRANSPARENT".
I have not been able to find something equivalent in the Applescript dictionary for iCal.
可以肯定的是,日历存储中没有用于此目的的公共 API。您必须提交错误请求。替代方案:
Pretty certain there is no public API in Calendar Store for this. You'll have to file a bug requesting it. Alternatives:
作为黑客,您可以请求该事件的 CalDav 文件并解析它吗?
As a hack could you request a CalDav file for the event and parse that?