The AddressBook framework has a list of constants, like kABFirstNameProperty
. I'm wondering if there's a list of those that I could display in a user interface, other than having to "replicate" this myself?
问问题
208 次
2 回答
1
In the C-based Address Book API for the Mac, there's a function named ABCopyArrayOfPropertiesForRecordType
that sounds like exactly what you need.
I would hope that the property keys would be equal to those in the Objective-C AB API, if that's what you're using, but you should probably test that—or just use the C-based API.
于 2012-06-01T15:46:12.297 回答
1
I just found the Objective-C API's equivalents to the ABCopyArrayOfPropertiesForRecordType
function. Two methods:
Since these are class methods, you should find that they return all known properties for any records of that type.
于 2012-06-04T01:19:16.360 回答