ABPerson C Reference
| Derived from | |
| Framework | AddressBook/ABAddressBookC.h |
| Companion guide | |
| Declared in | ABAddressBookC.h ABGlobals.h |
Overview
The ABPerson opaque type encapsulates all information about a person in the Address Book database—an instance of ABPerson corresponds to a single person record in the database. The ABPerson opaque type defines properties such as the person’s name, company, address, email addresses, and phone numbers.
You get a person’s property value using the ABRecordCopyValue function. See ABRecord C Reference for more functions that get and set properties. See the “Constants” section for a list of all the properties, labels, and keys used to access fields in a person record.
Some of these properties have multiple values that are accessed via standard and user-defined labels. For example, a person may have a home, work, mobile, and fax phone numbers. Therefore, the phone attribute is defined as an ABMultiValue object containing NSString objects for each number. See ABMultiValue C Reference for more details on multi-value lists and how primary values work.
You can add your own properties to person records too using the ABAddPropertiesAndTypes function—that is, attach additional program-defined data to each person record. Because the Address Book database is stored as a property list, these program-defined properties can be ignored by other applications. Note that the AddressBook database is accessed by multiple application and is not encrypted so your application should not store any sensitive information in the database like credit card numbers.
A person may also have an associated picture or image. The image in not actually stored in the Address Book database (a property list)—it’s stored in a separate image file. You can set a person’s image using the ABPersonSetImageData function, or get an image using the ABPersonCopyImageDatafunction.
Image files may be local or remote. Local images are any images in .../Library/Images/People or images the user has set using the Address Book application. Remote images are images stored on the network. Theses images take time to download, so ABPerson provides an asynchronous API for fetching remote images.
Use the ABBeginLoadingImageDataForClient function if an image file is not local and you want to perform an asynchronous fetch. The ABBeginLoadingImageDataForClient function will return an image tracking number. The tracking number and the fetched image will be passed to your callback function. Implement your callback function to handle the fetched image. Use the ABCancelLoadingImageDataForTag function if for some reason you want to cancel an asynchronous fetch.
Person records may belong to multiple groups. Use the ABPersonCopyParentGroups function to get the groups a person belongs to. See ABGroup C Reference for more information about groups.
You can also search for records matching a particular “query” you specify by creating an ABSearchElement object. Use the ABPersonCreateSearchElement function to create an ABSearchElement object containing your query. Then use the ABAddressBook ABCopyArrayOfMatchingRecords function, passing the ABSearchElement as the argument, to query the database. See ABSearchElement C Reference for more functions that create compound queries.
Your application can also import and export persons in the vCard file format using the ABPersonCreateWithVCardRepresentation and ABPersonCopyVCardRepresentation functions.
The ABPerson opaque type is “toll-free bridged” with its Objective-C counterpart. This means that the ABPersonRef type is interchangeable in function or method calls with instances of the ABPerson class.
Functions
ABBeginLoadingImageDataForClient
Starts an asynchronous fetch for image data in all locations, and returns a non-zero tag for tracking.
CFIndex ABBeginLoadingImageDataForClient ( ABPersonRef person, ABImageClientCallback callback, void *refcon );
Parameters
- person
The person whose image data you wish to fetch.
- callback
The function to call when the fetch is completed.
- refcon
An untyped pointer to program-defined data that will be passed to the callback.
Return Value
A non-zero tag for tracking
Discussion
Use this function to begin an asynchronous fetch. Implement your callback function to receive the fetched image. Use the ABCancelLoadingImageDataForTag function to cancel an asynchronous fetch.
Availability
- Available in OS X v10.2 and later.
Declared In
ABAddressBookC.hABCancelLoadingImageDataForTag
Cancels an asynchronous fetch of an image for the given tag.
void ABCancelLoadingImageDataForTag ( CFIndex tag );
Parameters
- tag
Used to track an asynchronous fetch. This parameter should have been returned from a previous call to the
ABBeginLoadingImageDataForClientfunction.
Discussion
Use the ABBeginLoadingImageDataForClient function to begin an asynchronous fetch. Implement your callback function to receive the fetched image. Use this function to cancel an asynchronous fetch.
Availability
- Available in OS X v10.2 and later.
Declared In
ABAddressBookC.hABPersonCopyImageData
Returns data that contains a picture of a person.
CFDataRef ABPersonCopyImageData ( ABPersonRef person );
Parameters
- person
The person whose image you wish to obtain.
Return Value
The data representing an image of person. You are responsible for releasing this object.
The returned data is in a QuickTime-compatible format. To create an image from it, use the NSImage method initWithData:.
Availability
- Available in OS X v10.2 and later.
Declared In
ABAddressBookC.hABPersonCopyParentGroups
Returns an array of groups that a person belongs to.
CFArrayRef ABPersonCopyParentGroups ( ABPersonRef person );
Parameters
- person
The person whose parent groups you wish to obtain.
Return Value
An array of ABGroup objects which person belongs to. You are responsible for releasing this object.
Availability
- Available in OS X v10.2 and later.
Declared In
ABAddressBookC.hABPersonCopyVCardRepresentation
Returns the vCard representation of the person as a data object in vCard format.
CFDataRef ABPersonCopyVCardRepresentation ( ABPersonRef person );
Parameters
- person
The person whose vCard representation you wish to obtain.
Return Value
The vCard representation of person as a data object in vCard format. You are responsible for releasing this object.
Availability
- Available in OS X v10.2 and later.
Declared In
ABAddressBookC.hABPersonCreate
Returns a newly created person object.
ABPersonRef ABPersonCreate ( void );
Return Value
A newly created person object. You are responsible for releasing this object.
Availability
- Available in OS X v10.2 and later.
Declared In
ABAddressBookC.hABPersonCreateSearchElement
Returns a search element object that specifies a query for records of this type.
ABSearchElementRef ABPersonCreateSearchElement ( CFStringRef property, CFStringRef label, CFStringRef key, CFTypeRef value, ABSearchComparison comparison );
Parameters
- property
The name of the property to search on. It cannot be
NULL. For a full list of the properties, see“Person Properties”andCommon Propertiesin ABRecord.- label
The label name for a multi-value list. If property does not have multiple values, pass
NULL. If property does have multiple values, passNULLto search all the values.- key
The key name for a dictionary. If property is not a dictionary, pass
NULL. If property is a dictionary, passNULLto search all keys.- value
The value you are searching for. It cannot be
NULL- comparison
Specifies the type of comparison to perform, such as
kABEqualorkABPrefixMatchCaseInsensitive. For a full list, seeSearch Comparisons.
Return Value
A search element object that specifies a query according to the above parameters. You are responsible for releasing this object.
Discussion
Use the ABAddressBook ABCopyArrayOfMatchingRecords function to actually perform the query. Also, see ABSearchElement C Reference for more functions that create compound queries.
Availability
- Available in OS X v10.2 and later.
Declared In
ABAddressBookC.hABPersonCreateWithVCardRepresentation
Returns a new ABPerson object initialized with the given data in vCard format.
ABPersonRef ABPersonCreateWithVCardRepresentation ( CFDataRef vCard );
Parameters
- vCard
The data in vCard format to initialize the new ABPerson object with.
Return Value
A new ABPerson object initialized with the given data in vCard format. You are responsible for releasing this object.
Availability
- Available in OS X v10.2 and later.
Declared In
ABAddressBookC.hABPersonSetImageData
Sets the image for this person to the given data.
bool ABPersonSetImageData ( ABPersonRef person, CFDataRef imageData );
Parameters
- person
The person whose image data you wish to set.
- imageData
The image data to use as the image for person.
Return Value
true if successful, false otherwise.
Availability
- Available in OS X v10.2 and later.
Declared In
ABAddressBookC.hCallbacks
ABImageClientCallback
Prototype of a callback function used to notify an application when an asynchronous image fetch is complete.
typedef void (*ABImageClientCallback) ( CFDataRef imageData, int tag, void *info );
If you name your function MyCallBack, you would declare it like this:
const void MyCallback ( CFDataRef imageData, int tag, void *info );
Parameters
- imageData
The image data in Quicktime compatible format that was loaded from an asynchronous fetch.
NULLif the fetch failed.- tag
The tracking number for this fetch that should have been obtained from a previous call to the
ABBeginLoadingImageDataForClientfunction.- info
An untyped pointer to program-defined data that was passed to the
ABBeginLoadingImageDataForClientfunction.
Discussion
Use the ABBeginLoadingImageDataForClient function to begin an asynchronous fetch, and the ABCancelLoadingImageDataForTag function to cancel an asynchronous fetch.
Availability
- Available in OS X v10.2 and later.
Declared In
ABAddressBookC.hData Types
ABPersonRef
A reference to an ABPerson object.
typedef struct __ABPerson *ABPersonRef;
Availability
- Available in OS X v10.2 and later.
Declared In
ABAddressBookC.hConstants
Person Properties
CFPlugIn defines the following domain qualifier constants.
CFStringRef kABFirstNameProperty; CFStringRef kABLastNameProperty; CFStringRef kABFirstNamePhoneticProperty; CFStringRef kABLastNamePhoneticProperty; CFStringRef kABBirthdayProperty; CFStringRef kABOrganizationProperty; CFStringRef kABJobTitleProperty; CFStringRef kABHomePageProperty; CFStringRef kABURLsProperty; CFStringRef kABCalendarURIsProperty; CFStringRef kABEmailProperty; CFStringRef kABAddressProperty; CFStringRef kABPhoneProperty; CRStringRef kABInstantMessageProperty; CFStringRef kABAIMInstantProperty; CFStringRef kABJabberInstantProperty; CFStringRef kABMSNInstantProperty; CFStringRef kABYahooInstantProperty; CFStringRef kABICQInstantProperty; CFStringRef kABNoteProperty; CFStringRef kABMiddleNameProperty; CFStringRef kABMiddleNamePhoneticProperty; CFStringRef kABTitleProperty; CFStringRef kABSuffixProperty; CFStringRef kABNicknameProperty; CFStringRef kABMaidenNameProperty; CFStringRef kABOtherDatesProperty; CFStringRef kABRelatedNamesProperty; CFStringRef kABDepartmentProperty; CFStringRef kABPersonFlags;
Constants
kABFirstNamePropertyFirst name (string).
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABLastNamePropertyLast name (string).
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABFirstNamePhoneticPropertyFirst name phonetic (string).
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABLastNamePhoneticPropertyLast name phonetic (string).
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABBirthdayPropertyBirth date (date).
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABOrganizationPropertyCompany name (string)
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABJobTitlePropertyJob Title (string).
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABHomePagePropertyHome Web page (string). Deprecated in OS X version 10.4.
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABURLsPropertyWeb pages (multi-string).
Available in OS X v10.4 and later.
Declared in
ABGlobals.h.kABCalendarURIsPropertyCalendar URIs(multi-string).
Available in OS X v10.5 and later.
Declared in
ABGlobals.h.kABEmailPropertyemail(s) (multi-string).
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABAddressPropertyStreet Addresses (multi-dictionary).
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABPhonePropertyGeneric phone number (multi-string).
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABInstantMessagePropertyInstant messaging ID.
Available in OS X v10.7 and later.
Declared in
ABGlobals.h.kABAIMInstantPropertyAIM Instant Messaging (multi-string). (Deprecated. Use the multivalue property
kABInstantMessagePropertywith an instant message service ofkABInstantMessageServiceAIMinstead.)Available in OS X v10.2 and later.
Deprecated in OS X v10.7.
Declared in
ABGlobals.h.kABJabberInstantPropertyJabber Instant Messaging (multi-string). (Deprecated. Use the multivalue property
kABInstantMessagePropertywith an instant message service ofkABInstantMessageServiceJabberinstead.)Available in OS X v10.2 and later.
Deprecated in OS X v10.7.
Declared in
ABGlobals.h.kABMSNInstantPropertyMSN Instant Messaging (multi-string). (Deprecated. Use the multivalue property
kABInstantMessagePropertywith an instant message service ofkABInstantMessageServiceMSNinstead.)Available in OS X v10.2 and later.
Deprecated in OS X v10.7.
Declared in
ABGlobals.h.kABYahooInstantPropertyYahoo Instant Messaging (multi-string). (Deprecated. Use the multivalue property
kABInstantMessagePropertywith an instant message service ofkABInstantMessageServiceYahooinstead.)Available in OS X v10.2 and later.
Deprecated in OS X v10.7.
Declared in
ABGlobals.h.kABICQInstantPropertyICQ Instant Messaging (multi-string). (Deprecated. Use the multivalue property
kABInstantMessagePropertywith an instant message service ofkABInstantMessageServiceICQinstead.)Available in OS X v10.2 and later.
Deprecated in OS X v10.7.
Declared in
ABGlobals.h.kABNotePropertyNote (string).
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABMiddleNamePropertyMiddle name (string).
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABMiddleNamePhoneticPropertyMiddle name phonetic (string). Not supported in the AddressBook UI.
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABTitlePropertyTitle as in “Sir”, “Duke”, “General”, “Cardinal”, or “Lord” (string). Not supported in the AddressBook UI.
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABSuffixPropertySuffix as in “Sr.”, “Jr.”, “III”, or “Esq.” (string). Not supported in the AddressBook UI.
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABNicknamePropertyNickname (string).
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABMaidenNamePropertyMaiden name (string).
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABOtherDatesPropertyDates associated with a person (ABMultiDateProperty containing dates).
Available in OS X v10.3 and later.
Declared in
ABGlobals.h.kABRelatedNamesPropertyNames of people related to a person (ABMultiStringProperty containing names).
Available in OS X v10.3 and later.
Declared in
ABGlobals.h.kABDepartmentPropertyDepartment name (string).
Available in OS X v10.3 and later.
Declared in
ABGlobals.h.kABPersonFlagsProperty that specifies the name ordering and user configuration of a record in the Address Book application.
Available in OS X v10.3 and later.
Declared in
ABGlobals.h.
Person Flags
The ABPersonFlags property is used to access the following settings:
#define kABShowAsPerson 000000 #define kABShowAsCompany 000001 #define kABShowAsMask 000007 #define kABDefaultNameOrdering 000000 #define kABFirstNameFirst 000040 #define kABLastNameFirst 000020 #define kABNameOrderingMask 000070
Constants
kABShowAsPersonRecord is displayed as a person.
Available in OS X v10.3 and later.
Declared in
ABGlobals.h.kABShowAsCompanyRecord is displayed as a company.
Available in OS X v10.3 and later.
Declared in
ABGlobals.h.kABShowAsMaskUsed in conjunction with
kABShowAsPersonandkABShowAsCompanyto determine record configuration.Available in OS X v10.3 and later.
Declared in
ABGlobals.h.kABDefaultNameOrderingDefault name ordering (whether a person’s first name or last name is displayed first) in the Address Book application.
Available in OS X v10.3 and later.
Declared in
ABGlobals.h.kABFirstNameFirstFirst name is displayed first in Address Book.
Available in OS X v10.3 and later.
Declared in
ABGlobals.h.kABLastNameFirstLast name is displayed first in Address Book.
Available in OS X v10.3 and later.
Declared in
ABGlobals.h.kABNameOrderingMaskUsed in conjunction with
kABDefaultNameOrdering,kABFirstNameFirst, andkABLastNameFirstto determine name ordering.Available in OS X v10.3 and later.
Declared in
ABGlobals.h.
Availability
- Available in OS X v10.3 and later.
Email Labels
Labels used by the email property.
CFStringRef kABEmailWorkLabel; CFStringRef kABEmailHomeLabel;
Constants
kABEmailWorkLabelWork email.
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABEmailHomeLabelHome email.
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.
Address Labels
Labels used by the address property.
CFStringRef kABAddressWorkLabel; CFStringRef kABAddressHomeLabel;
Constants
kABAddressWorkLabelWork address.
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABAddressHomeLabelHome address.
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.
Address Keys
Keys used by the address property.
CFStringRef kABAddressStreetKey; CFStringRef kABAddressCityKey; CFStringRef kABAddressStateKey; CFStringRef kABAddressZIPKey; CFStringRef kABAddressCountryKey; CFStringRef kABAddressCountryCodeKey;
Constants
kABAddressStreetKeyStreet (string).
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABAddressCityKeyCity (string).
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABAddressStateKeyState (string).
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABAddressZIPKeyZip (string).
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABAddressCountryKeyCountry (string).
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABAddressCountryCodeKeyCountry Code (string).
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.
Phone Labels
Labels used by the phone property.
CFStringRef kABPhoneWorkLabel; CFStringRef kABPhoneHomeLabel; CFStringRef kABPhoneMobileLabel; CFStringRef kABPhoneMainLabel; CFStringRef kABPhoneHomeFAXLabel; CFStringRef kABPhoneWorkFAXLabel; CFStringRef kABPhonePagerLabel;
Constants
kABPhoneWorkLabelWork phone.
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABPhoneHomeLabelHome phone.
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABPhoneMobileLabelCell phone.
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABPhoneMainLabelMain phone.
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABPhoneHomeFAXLabelFAX number.
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABPhoneWorkFAXLabelFAX number.
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABPhonePagerLabelPager number.
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.
Web Page Labels
Labels used by the kABURLsProperty property.
CFStringRef kABHomePageLabel;
Constants
kABHomePageLabelWeb page URL. (Deprecated. Use the
kABURLsPropertymultivalue property with the labelkABHomePageLabelinstead.)Available in OS X v10.4 and later.
Declared in
ABGlobals.h.
Related Names Labels
Labels used by the related-names property.
CFStringRef kABMotherLabel; CFStringRef kABFatherLabel; CFStringRef kABParentLabel; CFStringRef kABSisterLabel; CFStringRef kABBrotherLabel; CFStringRef kABChildLabel; CFStringRef kABFriendLabel; CFStringRef kABSpouseLabel; CFStringRef kABPartnerLabel; CFStringRef kABAssistantLabel; CFStringRef kABManagerLabel;
Constants
kABMotherLabelMother.
Available in OS X v10.3 and later.
Declared in
ABGlobals.h.kABFatherLabelFather.
Available in OS X v10.3 and later.
Declared in
ABGlobals.h.kABParentLabelParent.
Available in OS X v10.3 and later.
Declared in
ABGlobals.h.kABSisterLabelSister.
Available in OS X v10.3 and later.
Declared in
ABGlobals.h.kABBrotherLabelBrother.
Available in OS X v10.3 and later.
Declared in
ABGlobals.h.kABChildLabelChild.
Available in OS X v10.3 and later.
Declared in
ABGlobals.h.kABFriendLabelFriend.
Available in OS X v10.3 and later.
Declared in
ABGlobals.h.kABSpouseLabelSpouse.
Available in OS X v10.3 and later.
Declared in
ABGlobals.h.kABPartnerLabelPartner.
Available in OS X v10.3 and later.
Declared in
ABGlobals.h.kABAssistantLabelAssistant
Available in OS X v10.3 and later.
Declared in
ABGlobals.h.kABManagerLabelManager.
Available in OS X v10.3 and later.
Declared in
ABGlobals.h.
Availability
- Available in OS X v10.3 and later.
AIM Instant Labels
Labels used by the AIM instance property.
CFStringRef kABAIMWorkLabel; CFStringRef kABAIMHomeLabel;
Constants
kABAIMWorkLabelWork AIM. (Deprecated. Use the multivalue property
kABInstantMessagePropertywith a label ofkABWorkLabeland an instant message service ofkABInstantMessageServiceAIMinstead.)Available in OS X v10.2 and later.
Deprecated in OS X v10.7.
Declared in
ABGlobals.h.kABAIMHomeLabelHome AIM. (Deprecated. Use the multivalue property
kABInstantMessagePropertywith a label ofkABHomeLabeland an instant message service ofkABInstantMessageServiceAIMinstead.)Available in OS X v10.2 and later.
Deprecated in OS X v10.7.
Declared in
ABGlobals.h.
Jabber Instant Labels
Labels used by the Jabber instance property.
CFStringRef kABJabberWorkLabel; CFStringRef kABJabberHomeLabel;
Constants
kABJabberWorkLabelWork Jabber. (Deprecated. Use the multivalue property
kABInstantMessagePropertywith a label ofkABWorkLabeland an instant message service ofkABInstantMessageServiceJabberinstead.)Available in OS X v10.2 and later.
Deprecated in OS X v10.7.
Declared in
ABGlobals.h.kABJabberHomeLabelHome Jabber. (Deprecated. Use the multivalue property
kABInstantMessagePropertywith a label ofkABHomeLabeland an instant message service ofkABInstantMessageServiceJabberinstead.)Available in OS X v10.2 and later.
Deprecated in OS X v10.7.
Declared in
ABGlobals.h.
MSN Instant Labels
Labels used by the MSN instance property.
CFStringRef kABMSNWorkLabel; CFStringRef kABMSNHomeLabel;
Constants
kABMSNWorkLabelWork MSN. (Deprecated. Use the multivalue property
kABInstantMessagePropertywith a label ofkABWorkLabeland an instant message service ofkABInstantMessageServiceMSNinstead.)Available in OS X v10.2 and later.
Deprecated in OS X v10.7.
Declared in
ABGlobals.h.kABMSNHomeLabelHome MSN. (Deprecated. Use the multivalue property
kABInstantMessagePropertywith a label ofkABHomeLabeland an instant message service ofkABInstantMessageServiceMSNinstead.)Available in OS X v10.2 and later.
Deprecated in OS X v10.7.
Declared in
ABGlobals.h.
Yahoo Instant Labels
Labels used by the Yahoo instance property.
CFStringRef kABYahooWorkLabel; CFStringRef kABYahooHomeLabel;
Constants
kABYahooWorkLabelWork Yahoo. (Deprecated. Use the multivalue property
kABInstantMessagePropertywith a label ofkABWorkLabeland an instant message service ofkABInstantMessageServiceYahooinstead.)Available in OS X v10.2 and later.
Deprecated in OS X v10.7.
Declared in
ABGlobals.h.kABYahooHomeLabelHome Yahoo. (Deprecated. Use the multivalue property
kABInstantMessagePropertywith a label ofkABHomeLabeland an instant message service ofkABInstantMessageServiceYahooinstead.)Available in OS X v10.2 and later.
Deprecated in OS X v10.7.
Declared in
ABGlobals.h.
ICQ Instant Labels
Labels used by the ICQ instance property.
CFStringRef kABICQWorkLabel; CFStringRef kABICQHomeLabel;
Constants
kABICQWorkLabelWork ICQ. (Deprecated. Use the multivalue property
kABInstantMessagePropertywith a label ofkABWorkLabeland an instant message service ofkABInstantMessageServiceICQinstead.)Available in OS X v10.2 and later.
Deprecated in OS X v10.7.
Declared in
ABGlobals.h.kABICQHomeLabelHome ICQ. (Deprecated. Use the multivalue property
kABInstantMessagePropertywith a label ofkABHomeLabeland an instant message service ofkABInstantMessageServiceICQinstead.)Available in OS X v10.2 and later.
Deprecated in OS X v10.7.
Declared in
ABGlobals.h.
Instant Messaging Keys
The keys used to specify the different fields in a kABInstantMessageProperty. Neither developers nor users can add more keys.
NSString * const kABInstantMessageUsernameKey; NSString * const kABInstantMessageServiceKey;
Constants
kABInstantMessageUsernameKeyThe instant messaging username or handle.
Available in OS X v10.7 and later.
Declared in
ABGlobals.h.kABInstantMessageServiceKeyThe instant messaging service.
Available in OS X v10.7 and later.
Declared in
ABGlobals.h.
Instant Messaging Services
The predefined constants used to identify instant messaging services. You may use these constants or any other string.
CFStringRef kABInstantMessageServiceAIM; CFStringRef kABInstantMessageServiceFacebook; CFStringRef kABInstantMessageServiceGaduGadu; CFStringRef kABInstantMessageServiceGoogleTalk; CFStringRef kABInstantMessageServiceICQ; CFStringRef kABInstantMessageServiceJabber; CFStringRef kABInstantMessageServiceMSN; CFStringRef kABInstantMessageServiceQQ; CFStringRef kABInstantMessageServiceSkype; CFStringRef kABInstantMessageServiceYahoo;
Constants
kABInstantMessageServiceAIMAOL Instant Messenger.
Available in OS X v10.7 and later.
Declared in
ABGlobals.h.kABInstantMessageServiceFacebookFacebook.
Available in OS X v10.7 and later.
Declared in
ABGlobals.h.kABInstantMessageServiceGaduGaduGadu-Gadu.
Available in OS X v10.7 and later.
Declared in
ABGlobals.h.kABInstantMessageServiceGoogleTalkGoogle Talk.
Available in OS X v10.7 and later.
Declared in
ABGlobals.h.kABInstantMessageServiceICQICQ.
Available in OS X v10.7 and later.
Declared in
ABGlobals.h.kABInstantMessageServiceJabberJabber.
Available in OS X v10.7 and later.
Declared in
ABGlobals.h.kABInstantMessageServiceMSNMSN.
Available in OS X v10.7 and later.
Declared in
ABGlobals.h.kABInstantMessageServiceQQQQ.
Available in OS X v10.7 and later.
Declared in
ABGlobals.h.kABInstantMessageServiceSkypeSkype.
Available in OS X v10.7 and later.
Declared in
ABGlobals.h.kABInstantMessageServiceYahooYahoo!.
Available in OS X v10.7 and later.
Declared in
ABGlobals.h.
Other Dates Labels
Labels for values contained in ABOtherDatesProperty multi-value properties.
kABAnniversaryLabe l
Constants
kABAnniversaryLabelAnniversary date.
Available in OS X v10.3 and later.
Declared in
ABGlobals.h.
Availability
- Available in OS X v10.3 and later.
Generic Labels
Generic labels that may apply to any multi-value list property.
CFStringRef kABWorkLabel; CFStringRef kABHomeLabel; CFStringRef kABOtherLabel; CFStringRef kABMobileMeLabel;
Constants
kABWorkLabelAll
kABXXXXWorkLabelconstants are equivalent to this label.Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABHomeLabelAll
kABXXXXHomeLabelconstants are equivalent to this label.Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABOtherLabelCan be used with any multi-value property.
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABMobileMeLabelMobileMe instant messager or email values.
Available in OS X v10.7 and later.
Declared in
ABGlobals.h.
Record Type
Constants used to indicate a specific type of record.
CFStringRef kABPersonRecordType;
Constants
kABPersonRecordTypeIndicates record of an ABPerson object.
© 2002, 2010 Apple Inc. All Rights Reserved. (Last updated: 2010-12-10)