开发者

Create ABPerson Records in a Shared CardDAV (10.6/Server Hosted) AddressBook

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?


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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜