Address Book Objective-C Constants Reference
| Framework | AddressBook/AddressBook.h |
| Declared in | ABAddressBook.h ABGlobals.h ABTypedefs.h |
Overview
This document defines constants in the Address Book framework.
Constants
Default Multivalue List Labels
The default labels contained in the Address Book database for specifying different values in a multivalue list. Users can also add their own labels.
NSString * const kABHomePageLabel; NSString * const kABEmailWorkLabel; NSString * const kABEmailHomeLabel; NSString * const kABEmailMobileMeLabel; NSString * const kABAddressHomeLabel; NSString * const kABAddressWorkLabel; NSString * const kABAnniversaryLabel; NSString * const kABFatherLabel; NSString * const kABMotherLabel; NSString * const kABParentLabel; NSString * const kABBrotherLabel; NSString * const kABSisterLabel; NSString * const kABChildLabel; NSString * const kABFriendLabel; NSString * const kABSpouseLabel; NSString * const kABPartnerLabel; NSString * const kABAssistantLabel; NSString * const kABManagerLabel; NSString * const kABPhoneWorkLabel; NSString * const kABPhoneHomeLabel; NSString * const kABPhoneiPhoneLabel; NSString * const kABPhoneMobileLabel; NSString * const kABPhoneMainLabel; NSString * const kABPhoneHomeFAXLabel; NSString * const kABPhoneWorkFAXLabel; NSString * const kABPhonePagerLabel; NSString * const kABAIMWorkLabel; NSString * const kABAIMHomeLabel; NSString * const kABAIMMobileMeLabel; NSString * const kABJabberWorkLabel; NSString * const kABJabberHomeLabel; NSString * const kABMSNWorkLabel; NSString * const kABMSNHomeLabel; NSString * const kABYahooWorkLabel; NSString * const kABYahooHomeLabel; NSString * const kABICQWorkLabel; NSString * const kABICQHomeLabel;
Constants
kABHomePageLabelWebpage URL.
Available in OS X v10.4 and later.
Declared in
ABGlobals.h.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.kABEmailMobileMeLabelMobile Me email.
Available in OS X v10.6 and later.
Declared in
ABGlobals.h.kABAddressHomeLabelHome address.
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABAddressWorkLabelWork address.
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABAnniversaryLabelAnniversary date.
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.kABMotherLabelMother.
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.kABBrotherLabelBrother.
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.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.kABPhoneWorkLabelWork phone number.
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABPhoneHomeLabelHome phone number.
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABPhoneiPhoneLabeliPhone phone number.
Available in OS X v10.6 and later.
Declared in
ABGlobals.h.kABPhoneMobileLabelCell phone number.
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABPhoneMainLabelMain phone number.
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABPhoneHomeFAXLabelHome fax number.
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABPhoneWorkFAXLabelWork fax 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.kABAIMWorkLabelWork AOL instant messaging ID. (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 AOL instant messaging ID. (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.kABAIMMobileMeLabelMobile Me AOL instant messaging ID. (Deprecated. Use the multivalue property
kABInstantMessagePropertywith an instant message service ofkABMobileMeLabelinstead.)Available in OS X v10.6 and later.
Deprecated in OS X v10.7.
Declared in
ABGlobals.h.kABJabberWorkLabelWork Jabber instant messaging ID. (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 instant messaging ID. (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.kABMSNWorkLabelWork MSN instant messaging ID. (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 instant messaging ID. (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.kABYahooWorkLabelWork Yahoo instant messaging ID. (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 instant messaging ID. (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.kABICQWorkLabelWork ICQ instant messaging ID. (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 instant messaging ID. (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.
Generic Multivalue List Labels
The generic labels contained in the Address Book database for specifying different values in a multivalue list. These labels are especially useful if there is no default label for a property. Users can also add their own labels.
NSString * const kABWorkLabel; NSString * const kABHomeLabel; NSString * const kABOtherLabel; NSString * const kABMobileMeLabel;
Constants
kABWorkLabelAll Work labels match this label.
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABHomeLabelAll Home labels match this label.
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABOtherLabelAll labels other than Home or Work labels match this label.
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABMobileMeLabelMobileMe instant messenger or email values.
Available in OS X v10.7 and later.
Declared in
ABGlobals.h.
Default Record Properties
Properties common to all types of records.
NSString * const kABUIDProperty; NSString * const kABCreationDateProperty; NSString * const kABModificationDateProperty;
Constants
kABUIDPropertyThe unique ID for this record. It’s guaranteed never to change, no matter how much the record changes. If you need to store a reference to a record, use this value. Type:
kABStringProperty.Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABCreationDatePropertyThe date when the record was first saved. Type:
kABDateProperty.Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABModificationDatePropertyThe date when the record was last saved. Type:
kABDateProperty.Available in OS X v10.2 and later.
Declared in
ABGlobals.h.
Default Group Properties
The properties that a group record contains by default. Developers can add their own properties with the ABGroup method addPropertiesAndTypes:
NSString * const kABGroupNameProperty;
Constants
kABGroupNamePropertyName of the group
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.
Default Person Properties
The properties that a person record contains by default. Developers can add their own properties with the ABPerson method addPropertiesAndTypes:.
NSString * const kABFirstNameProperty; NSString * const kABLastNameProperty; NSString * const kABFirstNamePhoneticProperty; NSString * const kABLastNamePhoneticProperty; NSString * const kABNicknameProperty; NSString * const kABMaidenNameProperty; NSString * const kABBirthdayProperty; NSString * const kABBirthdayComponentsProperty; NSString * const kABOrganizationProperty; NSString * const kABJobTitleProperty; NSString * const kABHomePageProperty; NSString * const kABURLsProperty; NSString * const kABCalendarURIsProperty; NSString * const kABEmailProperty; NSString * const kABAddressProperty; NSString * const kABOtherDatesProperty; NSString * const kABOtherDateComponentsProperty; NSString * const kABRelatedNamesProperty; NSString * const kABDepartmentProperty; NSString * const kABPersonFlags; NSString * const kABPhoneProperty; NSString * const kABInstantMessageProperty; NSString * const kABAIMInstantProperty; NSString * const kABJabberInstantProperty; NSString * const kABMSNInstantProperty; NSString * const kABYahooInstantProperty; NSString * const kABICQInstantProperty; NSString * const kABNoteProperty; NSString * const kABSocialProfileProperty; NSString * const kABMiddleNameProperty; NSString * const kABMiddleNamePhoneticProperty; NSString * const kABTitleProperty; NSString * const kABSuffixProperty;
Constants
kABFirstNamePropertyFirst name. Type:
kABStringProperty.Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABLastNamePropertyLast name. Type:
kABStringProperty.Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABFirstNamePhoneticPropertyPhonetic representation of the first name. Type:
kABStringProperty.Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABLastNamePhoneticPropertyPhonetic representation of the last name. Type:
kABStringProperty.Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABNicknamePropertyNickname. Type:
kABStringProperty.Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABMaidenNamePropertyMaiden name. Type:
kABStringProperty.Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABBirthdayPropertyBirth date. Type:
kABDateProperty.Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABBirthdayComponentsPropertyBirth date as date components. Type:
kABDateComponentsProperty.Available in OS X v10.7 and later.
Declared in
ABGlobals.h.kABOrganizationPropertyCompany name. Type:
kABStringProperty.Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABJobTitlePropertyJob title. Type:
kABStringProperty.Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABHomePagePropertyHome web page. Type:
kABStringProperty. (Deprecated. UsekABURLsPropertyinstead.)The
kABHomePagePropertyproperty has been deprecated in OS X version 10.4. Instead, use thekABURLsPropertymultivalue property with the labelkABHomePageLabel.Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABURLsPropertyWeb pages. Type:
kABMultiStringProperty.Available in OS X v10.4 and later.
Declared in
ABGlobals.h.kABCalendarURIsPropertyCalendar URIs. Type:
kABMultiStringProperty.Available in OS X v10.5 and later.
Declared in
ABGlobals.h.kABEmailPropertyEmail addresses. Type:
kABMultiStringProperty.Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABAddressPropertyStreet addresses. Type:
kABMultiDictionaryProperty.Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABOtherDatesPropertyDates associated with a person. Type:
kABMultiDateProperty.Available in OS X v10.3 and later.
Declared in
ABGlobals.h.kABOtherDateComponentsPropertyDates associated with a person, as date components. Type:
kABMultiDateComponentsProperty.Available in OS X v10.7 and later.
Declared in
ABGlobals.h.kABRelatedNamesPropertyNames of people related to a person. Type:
kABMultiStringProperty.Available in OS X v10.3 and later.
Declared in
ABGlobals.h.kABDepartmentPropertyDepartment name. Type:
kABStringProperty.Available in OS X v10.3 and later.
Declared in
ABGlobals.h.kABPersonFlagsProperty that specifies the name ordering and configuration of a record in the Address Book application. See “Person Flags” in ABPerson Class Reference.
Available in OS X v10.3 and later.
Declared in
ABGlobals.h.kABPhonePropertyGeneric phone number. Type:
kABMultiStringProperty.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.kABAIMInstantPropertyAOL instant messaging ID. Type:
kABMultiStringProperty. (Deprecated. Use the multivalue propertykABInstantMessagePropertywith 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 ID. Type:
kABMultiStringProperty. (Deprecated. Use the multivalue propertykABInstantMessagePropertywith 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 ID. Type:
kABMultiStringProperty. (Deprecated. Use the multivalue propertykABInstantMessagePropertywith 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 ID. Type:
kABMultiStringProperty. (Deprecated. Use the multivalue propertykABInstantMessagePropertywith 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 ID. Type:
kABMultiStringProperty. (Deprecated. Use the multivalue propertykABInstantMessagePropertywith an instant message service ofkABInstantMessageServiceICQinstead.)Available in OS X v10.2 and later.
Deprecated in OS X v10.7.
Declared in
ABGlobals.h.kABNotePropertyNotes. Type:
kABStringProperty.Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABSocialProfilePropertySocial network profile.
Available in OS X v10.7 and later.
Declared in
ABGlobals.h.kABMiddleNamePropertyMiddle name. Type:
kABStringProperty.Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABMiddleNamePhoneticPropertyPhonetic representation of the middle name. Type:
kABStringProperty.Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABTitlePropertyTitle, such as “Mr.,” “Mrs.,” “General,” “Cardinal,” or “Lord.” Type:
kABStringProperty.Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABSuffixPropertySuffix, such as “Sr.,” “Jr.,” “III.,” or “Esq.” Type:
kABStringProperty.Available in OS X v10.2 and later.
Declared in
ABGlobals.h.
Multivalue Property
A multivalue property type.
#define kABMultiValueMask 0x100
Constants
kABMultiValueMaskUsed by
ABPropertyTypeto specify a multivalue property.Available in OS X v10.2 and later.
Declared in
ABTypedefs.h.
Property Types
The possible ABPropertyType types for ABRecord properties:
enum _ABPropertyType {
kABErrorInProperty = 0x0,
kABStringProperty = 0x1,
kABIntegerProperty = 0x2,
kABRealProperty = 0x3,
kABDateProperty = 0x4,
kABArrayProperty = 0x5,
kABDictionaryProperty = 0x6,
kABDataProperty = 0x7,
kABDateComponentsProperty = 0x8,
kABMultiStringProperty = kABMultiValueMask | kABStringProperty,
kABMultiIntegerProperty = kABMultiValueMask | kABIntegerProperty,
kABMultiRealProperty = kABMultiValueMask | kABRealProperty,
kABMultiDateProperty = kABMultiValueMask | kABDateProperty,
kABMultiArrayProperty = kABMultiValueMask | kABArrayProperty,
kABMultiDictionaryProperty = kABMultiValueMask | kABDictionaryProperty,
kABMultiDataProperty = kABMultiValueMask | kABDataProperty
kABMultiDateComponentsProperty = kABMultiValueMask | kABDateComponentsProperty
};
Constants
kABErrorInPropertyAn invalid property was used.
Available in OS X v10.2 and later.
Declared in
ABTypedefs.h.kABStringPropertyThis property is an
NSStringobject.Available in OS X v10.2 and later.
Declared in
ABTypedefs.h.kABIntegerPropertyThis property is an
NSNumberobject representing an integer.Available in OS X v10.2 and later.
Declared in
ABTypedefs.h.kABRealPropertyThis property is an
NSNumberobject representing a real number.Available in OS X v10.2 and later.
Declared in
ABTypedefs.h.kABDatePropertyThis property is an
NSDateobject.Available in OS X v10.2 and later.
Declared in
ABTypedefs.h.kABArrayPropertyThis property is an
NSArrayobject.Available in OS X v10.2 and later.
Declared in
ABTypedefs.h.kABDictionaryPropertyThis property is an
NSDictionaryobject.Available in OS X v10.2 and later.
Declared in
ABTypedefs.h.kABDataPropertyThis property is an
NSDataobject.Available in OS X v10.2 and later.
Declared in
ABTypedefs.h.kABDateComponentsPropertyThis property is an
NSDateComponentsobject.Available in OS X v10.7 and later.
Declared in
ABTypedefs.h.kABMultiStringPropertyThis property is an
ABMultiValueobject containingNSStringobjects.Available in OS X v10.2 and later.
Declared in
ABTypedefs.h.kABMultiIntegerPropertyThis property is an
ABMultiValueobject containingNSNumberobjects representing integers.Available in OS X v10.2 and later.
Declared in
ABTypedefs.h.kABMultiRealPropertyThis property is an
ABMultiValueobject containingNSNumberobjects representing real numbers.Available in OS X v10.2 and later.
Declared in
ABTypedefs.h.kABMultiDatePropertyThis property is an
ABMultiValueobject containingNSDateobjects.Available in OS X v10.2 and later.
Declared in
ABTypedefs.h.kABMultiArrayPropertyThis property is an
ABMultiValueobject containingNSArrayobjects.Available in OS X v10.2 and later.
Declared in
ABTypedefs.h.kABMultiDictionaryPropertyThis property is an
ABMultiValueobject containingNSDictionaryobjects.Available in OS X v10.2 and later.
Declared in
ABTypedefs.h.kABMultiDataPropertyThis property is an
ABMultiValueobject containingNSDataobjects.Available in OS X v10.2 and later.
Declared in
ABTypedefs.h.kABMultiDateComponentsPropertyThis property is an
ABMultiValueobject containingNSDateComponentsobjects.Available in OS X v10.7 and later.
Declared in
ABTypedefs.h.
Address Keys
The keys used to specify the different fields in a kABAddressProperty. Neither developers nor users can add more keys.
NSString * const kABAddressStreetKey; NSString * const kABAddressCityKey; NSString * const kABAddressStateKey; NSString * const kABAddressZIPKey; NSString * const kABAddressCountryKey; NSString * const kABAddressCountryCodeKey;
Constants
kABAddressStreetKeyStreet.
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABAddressCityKeyCity.
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABAddressStateKeyState.
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABAddressZIPKeyZip.
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABAddressCountryKeyCountry name.
This is the field shown in the Contacts application.
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.kABAddressCountryCodeKeyCountry, identified by ISO country code. For a list of these codes, see “Country Codes”.
Available in OS X v10.2 and later.
Declared in
ABGlobals.h.
Instant Messaging Keys
The keys used to specify the different fields in a kABInstantMessageProperty property. 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 are used to identify instant messaging services. You may use these constants or any other string.
NSString * const kABInstantMessageServiceAIM; NSString * const kABInstantMessageServiceFacebook; NSString * const kABInstantMessageServiceGaduGadu; NSString * const kABInstantMessageServiceGoogleTalk; NSString * const kABInstantMessageServiceICQ; NSString * const kABInstantMessageServiceJabber; NSString * const kABInstantMessageServiceMSN; NSString * const kABInstantMessageServiceQQ; NSString * const kABInstantMessageServiceSkype; NSString * const kABInstantMessageServiceYahoo;
Constants
kABInstantMessageServiceAIMAOL Instant Messenger instant message service.
Available in OS X v10.7 and later.
Declared in
ABGlobals.h.kABInstantMessageServiceFacebookFacebook instant message service.
Available in OS X v10.7 and later.
Declared in
ABGlobals.h.kABInstantMessageServiceGaduGaduGadu-Gadu instant message service.
Available in OS X v10.7 and later.
Declared in
ABGlobals.h.kABInstantMessageServiceGoogleTalkGoogle Talk instant message service.
Available in OS X v10.7 and later.
Declared in
ABGlobals.h.kABInstantMessageServiceICQICQ instant message service.
Available in OS X v10.7 and later.
Declared in
ABGlobals.h.kABInstantMessageServiceJabberJabber instant message service.
Available in OS X v10.7 and later.
Declared in
ABGlobals.h.kABInstantMessageServiceMSNMSN instant message service.
Available in OS X v10.7 and later.
Declared in
ABGlobals.h.kABInstantMessageServiceQQQQ instant message service.
Available in OS X v10.7 and later.
Declared in
ABGlobals.h.kABInstantMessageServiceSkypeSkype instant message service.
Available in OS X v10.7 and later.
Declared in
ABGlobals.h.kABInstantMessageServiceYahooYahoo! instant message service.
Available in OS X v10.7 and later.
Declared in
ABGlobals.h.
Social Profile Keys
The keys used to specify the different fields in a kABSocialProfileProperty property. Neither developers nor users can add more keys.
NSString * const kABSocialProfileURLKey; NSString * const kABSocialProfileServiceKey; NSString * const kABSocialProfileUsernameKey; NSString * const kABSocialProfileUserIdentifierKey;
Constants
kABSocialProfileURLKeySocial profile URL.
Available in OS X v10.7 and later.
Declared in
ABGlobals.h.kABSocialProfileServiceKeySocial profile service.
Available in OS X v10.7 and later.
Declared in
ABGlobals.h.kABSocialProfileUsernameKeySocial profile username.
Available in OS X v10.7 and later.
Declared in
ABGlobals.h.kABSocialProfileUserIdentifierKeySocial profile user identifier.
Available in OS X v10.7 and later.
Declared in
ABGlobals.h.
Discussion
The value of these constants is undefined until one of the following functions has been called: ABAddressBookCreate, ABPersonCreate, ABGroupCreate.
Social Profile Services
The predefined constants are used to identify social networking services. You may use these constants or any other string.
NSString * const kABSocialProfileServiceTwitter; NSString * const kABSocialProfileServiceFacebook; NSString * const kABSocialProfileServiceMySpace; NSString * const kABSocialProfileServiceLinkedIn; NSString * const kABSocialProfileServiceFlickr; NSString * const kABSocialProfileServiceSinaWeibo;
Constants
kABSocialProfileServiceTwitterTwitter social profile service.
Available in OS X v10.7 and later.
Declared in
ABGlobals.h.kABSocialProfileServiceFacebookFacebook social profile service.
Available in OS X v10.7 and later.
Declared in
ABGlobals.h.kABSocialProfileServiceMySpaceMyspace social profile service.
Available in OS X v10.7 and later.
Declared in
ABGlobals.h.kABSocialProfileServiceLinkedInLinkedIn social profile service.
Available in OS X v10.7 and later.
Declared in
ABGlobals.h.kABSocialProfileServiceFlickrFlickr social profile service.
Available in OS X v10.7 and later.
Declared in
ABGlobals.h.kABSocialProfileServiceSinaWeiboSina Weibo social profile service.
Available in OS X v10.8 and later.
Declared in
ABGlobals.h.
Discussion
The value of these constants is undefined until one of the following functions has been called: ABAddressBookCreate, ABPersonCreate, ABGroupCreate.
Error Domains
Error domains.
NSString *ABAddressBookErrorDomain; NSString *ABMultiValueIdentifiersErrorKey;
Constants
ABAddressBookErrorDomainError domain returning errors reported by an address book object.
Available in OS X v10.7 and later.
Declared in
ABAddressBook.h.ABMultiValueIdentifiersErrorKeyKey used with
ABPropertyValueValidationError. Its value is an array of the identifiers for the values in the multivalue that were invalid.Available in OS X v10.7 and later.
Declared in
ABAddressBook.h.
Error Constants
Errors codes used by the Address Book framework.
enum {
ABAddRecordsError = 1001,
ABRemoveRecordsError = 1002,
ABPropertyValueValidationError = 1012,
ABPropertyUnsupportedBySourceError = 1013,
ABPropertyReadOnlyError = 1014
};
Constants
ABAddRecordsErrorThe record could not be added.
ABRemoveRecordsErrorThe record could not be removed.
ABPropertyValueValidationErrorThe property had an invalid value. See
ABMultiValueIdentifiersErrorKey.ABPropertyUnsupportedBySourceErrorThe property is not supported by the source.
ABPropertyReadOnlyErrorThe property is read-only.
© 2012 Apple Inc. All Rights Reserved. (Last updated: 2012-07-23)