Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Component: Contacts

The newer Apple API for Addressbook access

For 64-bit MacOS and iOS to work with addressbook and multiple accounts.
Replaces older deprecated Addressbook functions.

Version macOS Windows Linux Server iOS SDK
8.4 / 14.0 ✅ Yes ❌ No ❌ No ❌ No ✅ 86%

Item Details
CNContact.AddEmailAddress
Adds an email address to a contact.
Mac/iOS
8.4
CNContact.AddInstantMessage
Adds an instant message account to a contact.
Mac/iOS
8.4
CNContact.AddInstantMessageJSON
Adds an instant message account to a contact with JSON.
Mac/iOS
8.4
CNContact.AddPhoneNumber
Adds an phone number to a contact.
Mac/iOS
8.4
CNContact.AddPostalAddress
Adds an postal address to a contact.
Mac/iOS
8.4
CNContact.AddPostalAddressJSON
Adds an postal address to a contact with JSON.
Mac/iOS
8.4
CNContact.AddRelation
Adds an relation to a contact.
Mac/iOS
8.4
CNContact.AddSocialProfile
Adds an social profile to a contact.
Mac/iOS
8.4
CNContact.AddSocialProfileJSON
Adds an social profile to a contact with JSON.
Mac/iOS
8.4
CNContact.AddURLAddress
Adds an URL address to a contact.
Mac/iOS
8.4
CNContact.DeleteValue
Deletes a value of a contact.
Mac/iOS
10.1
CNContact.EditInAddressbook
Launches Contacts application to edit this person.
Mac only
8.4
CNContact.HasValue
Checks whether a value is available in the loaded contact.
Mac/iOS
12.1
CNContact.IsUnifiedWithContact
Checks if the contact is unified based on other contact.
Mac/iOS
8.5
CNContact.JSON
Queries contact as JSON.
Mac/iOS
8.4
CNContact.MailingAddress
Queries mailing address for contact.
Mac/iOS
8.4
CNContact.Name
Queries display name of contact.
Mac/iOS
8.4
CNContact.SetValue
Sets the value of a contact.
Mac/iOS
8.4
CNContact.Show
Shows a contact as sheet.
Mac/iOS
10.1
CNContact.ShowInAddressbook
Launches Contacts application to show this person.
Mac only
8.4
CNContact.UnifiedContacts
Queries which contacts an unified contact is based upon.
Mac/iOS
8.5
CNContact.Value
Queries the value of contact.
Mac/iOS
8.4
CNContactPicker.Close
Closes the picker.
Mac/iOS
10.1
CNContactPicker.Current
Queries the current contact.
Mac/iOS
10.1
CNContactPicker.SetTrigger
Sets the script trigger.
Mac/iOS
10.1
CNContactPicker.Show
Shows the contact picker to select a contact.
Mac/iOS
10.1
CNContactStore.AddContact
Adds a new contact to the database.
Mac/iOS
8.4
CNContactStore.AddGroup
Adds a new group.
Mac/iOS
8.4
CNContactStore.AddMember
Add a new member to a group.
Mac/iOS
8.4
CNContactStore.AddSubgroup
Adds a group to an existing group.
Mac only
8.4
CNContactStore.AuthorizationError
Queries error message.
Mac/iOS
8.4
CNContactStore.AuthorizationStatus
Queries authorization status.
Mac/iOS
8.4
CNContactStore.Contacts
Queries all contacts.
Mac/iOS
8.5
CNContactStore.ContactsInContainer
Queries list of contacts in a container.
Mac/iOS
8.4
CNContactStore.ContactsInGroup
Queries contacts in the group.
Mac/iOS
8.4
CNContactStore.ContactsMatchingEmailAddress
Find the contacts whose email address matches the specified value.
Mac/iOS
10.5
CNContactStore.ContactsMatchingName
Queries matching contacts for a name.
Mac/iOS
8.4
CNContactStore.ContactsMatchingPhoneNumber
Find the contacts whose phone number matches the specified value.
Mac/iOS
10.5
CNContactStore.ContactsMatchingURL
Find the contacts whose URL matches the specified value.
Mac/iOS
14.0
CNContactStore.ContactsWithData
Creates contacts for vCard data.
Mac/iOS
8.4
CNContactStore.ContainerForContact
Queries container for a contact.
Mac/iOS
8.4
CNContactStore.ContainerForGroup
Queries container for a group.
Mac/iOS
8.4
CNContactStore.Containers
Queries identifiers of all containers.
Mac/iOS
8.4
CNContactStore.Country
Returns ISO code for users country.
Mac/iOS
8.4
CNContactStore.DataWithContacts
Queries data for contacts.
Mac/iOS
8.4
CNContactStore.DefaultContainerIdentifier
The identifier of the default container.
Mac/iOS
8.4
CNContactStore.DeleteContact
Delete a contact from the contact store.
Mac/iOS
8.4
CNContactStore.DeleteGroup
Deletes a group.
Mac/iOS
8.4
CNContactStore.FetchContact
Fetches a fresh copy of this contact.
Mac/iOS
12.1
CNContactStore.GroupHierarchy
Queries group hierarchy as JSON.
Mac/iOS
8.5
CNContactStore.Groups
Queries list of all groups.
Mac/iOS
8.4
CNContactStore.GroupsByName
Looks for groups with matching names.
Mac only
8.4
CNContactStore.GroupsForContact
Searches all groups for a given contact.
Mac only
8.4
CNContactStore.GroupsInContainer
Queries all groups in a given container.
Mac only
8.4
CNContactStore.NewContact
Creates new empty contact.
Mac/iOS
8.4
CNContactStore.RemoveMember
Remove a member from a group.
Mac/iOS
8.4
CNContactStore.RemoveSubgroup
Removes a subgroup from a group.
Mac only
8.4
CNContactStore.RenameGroup
Renames the group.
Mac/iOS
8.4
CNContactStore.RequestAccesss
Request access to the user's contacts.
Mac/iOS
8.4
CNContactStore.SetChangeScript
Sets the script to trigger on changes by other applications.
Mac/iOS
8.4
CNContactStore.Subgroups
Queries subgroups of a group.
Mac only
8.4
CNContactStore.UnifiedMeContact
Queries ID of the your contact.
Mac only
8.4
CNContactStore.UpdateContact
Updates a contact.
Mac/iOS
8.4
CNContainer.Name
The name of the container.
Mac/iOS
8.4
CNContainer.Type
Queries type of container.
Mac/iOS
8.4
CNGroup.Name
Queries group name.
Mac/iOS
8.4

66 functions shown.

These functions require a license (68%).

Release notes

Blog Entries