在共享 CardDAV(10.6/服务器托管)地址簿中创建 ABPerson 记录
我的应用程序目前使用 AddressBook.framework 读取和写入本地 Mac OS X 10.6 客户端地址簿。效果很好。
10.6 Server 引入了 AddressBook Server,10.6 客户端可以通过设置 CardDAV 帐户来连接到该服务器。用户和组记录可以存储在该帐户中,该帐户会同步到 10.6 服务器,并可供访问同一 CardDAV 帐户的其他客户端使用。
Mail.app 能够自动完成本地数据存储以及远程 CardDAV 数据存储中帐户的电子邮件地址。 ABPeoplePicker 两者都可以看到。但是,以编程方式,我没有收到针对共享 AddressBook 的查询返回的任何基于 CardDAV 的数据。
我不确定是否需要向它请求不同的地址簿,或者是否需要修改我的获取请求以表明我希望它也能够使用共享数据。
我的目标是调整当前的代码,以便它也可以读取/写入 CardDAV 帐户,而不仅仅是本地地址簿。
想法?
My app presently reads and writes to the local Mac OS X 10.6 client addressbook using the AddressBook.framework. It works fine.
10.6 Server introduced AddressBook Server, which 10.6 clients can connect to by setting up a CardDAV Account. User and Group records can be stored in that account, which is synchronized to the 10.6 server and made available to other clients who access the same CardDAV account.
Mail.app is able to autocomplete the email addresses from accounts that are in the local datastore as well as the remote CardDAV datastore. ABPeoplePicker can see both. But, programatically, I'm not getting any CardDAV-based data returned from my queries against the shared AddressBook.
I'm not sure if I need to ask it for a different AddressBook, or if I need to modify my fetch-request to indicate that I want it to be able to use the shared data too.
My goal is to adapt the current code so that it can read/write to the CardDAV account too, instead of just the local addressbook.
Thoughts?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
答案已被编辑到我原来的问题中作为更新。基本上,10.6 中没有公共 API 允许您添加 CardDAV 条目。有趣的是,iOS API 中有这个。
Answer was edited into my original question as an update. Basically, there is no public API in 10.6 to allow you to add CardDAV entries. Interestingly, there is in the iOS API.