Platforms to show: All Mac Windows Linux Cross-Platform
CNMutableContactMBS class
Super class: CNContactMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Contacts | MBS Mac64bit Plugin | 16.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
When CNMutableContact object is a mutable copy of a CNContact object, if you access a CNMutableContact property value that was not fetched for the CNContact object, it throws an CNContactPropertyNotFetchedExceptionName exception. When needed, you can remove contact properties by setting string and array properties to empty, and all other properties to nil.
Available in OS X v10.11 and later.
Subclass of the CNContactMBS class.
- 20 properties
- property birthday as NSDateComponentsMBS
- property contactType as Integer
- property departmentName as String
- property familyName as String
- property givenName as String
- property imageData as MemoryBlock
- property jobTitle as String
- property middleName as String
- property namePrefix as String
- property nameSuffix as String
- property nickname as String
- property nonGregorianBirthday as NSDateComponentsMBS
- property note as String
- property organizationName as String
- property phoneticFamilyName as String
- property phoneticGivenName as String
- property phoneticMiddleName as String
- property phoneticOrganizationName as String
- property previousFamilyName as String
- property valueForKey(key as String) as Variant
- 9 methods
- method Constructor
- method setContactRelations(contactRelations() as CNLabeledValueMBS)
- method setDates(dates() as CNLabeledValueMBS)
- method setEmailAddresses(emailAddresses() as CNLabeledValueMBS)
- method setInstantMessageAddresses(instantMessageAddresses() as CNLabeledValueMBS)
- method setPhoneNumbers(phoneNumbers() as CNLabeledValueMBS)
- method setPostalAddresses(postalAddresses() as CNLabeledValueMBS)
- method setSocialProfiles(socialProfiles() as CNLabeledValueMBS)
- method setURLAddresses(urlAddresses() as CNLabeledValueMBS)
Super class CNContactMBS
- 23 properties
- property birthday as NSDateComponentsMBS
- property contactType as Integer
- property departmentName as String
- property familyName as String
- property givenName as String
- property Handle as Integer
- property identifier as String
- property imageData as MemoryBlock
- property imageDataAvailable as Boolean
- property jobTitle as String
- property middleName as String
- property namePrefix as String
- property nameSuffix as String
- property nickname as String
- property nonGregorianBirthday as NSDateComponentsMBS
- property note as String
- property organizationName as String
- property phoneticFamilyName as String
- property phoneticGivenName as String
- property phoneticMiddleName as String
- property phoneticOrganizationName as String
- property previousFamilyName as String
- property thumbnailImageData as MemoryBlock
- 15 methods
- method areKeysAvailable(keyDescriptors() as CNKeyDescriptorMBS) as Boolean
- method Constructor Private
- method contactRelations as CNLabeledValueMBS()
- method copy as CNContactMBS
- method dates as CNLabeledValueMBS()
- method emailAddresses as CNLabeledValueMBS()
- method instantMessageAddresses as CNLabeledValueMBS()
- method isKeyAvailable(key as String) as Boolean
- method isUnifiedWithContactWithIdentifier(contactIdentifier as String) as Boolean
- method mutableCopy as CNMutableContactMBS
- method phoneNumbers as CNLabeledValueMBS()
- method postalAddresses as CNLabeledValueMBS()
- method socialProfiles as CNLabeledValueMBS()
- method urlAddresses as CNLabeledValueMBS()
- method valueForKey(key as String) as Variant
- 40 shared methods
- shared method available as Boolean
- shared method CNContactBirthdayKey as String
- shared method CNContactDatesKey as String
- shared method CNContactDepartmentNameKey as String
- shared method CNContactEmailAddressesKey as String
- shared method CNContactFamilyNameKey as String
- shared method CNContactGivenNameKey as String
- shared method CNContactIdentifierKey as String
- shared method CNContactImageDataAvailableKey as String
- shared method CNContactImageDataKey as String
- shared method CNContactInstantMessageAddressesKey as String
- shared method CNContactJobTitleKey as String
- shared method CNContactMiddleNameKey as String
- shared method CNContactNamePrefixKey as String
- shared method CNContactNameSuffixKey as String
- shared method CNContactNicknameKey as String
- shared method CNContactNonGregorianBirthdayKey as String
- shared method CNContactNoteKey as String
- shared method CNContactOrganizationNameKey as String
- shared method CNContactPhoneNumbersKey as String
- shared method CNContactPhoneticFamilyNameKey as String
- shared method CNContactPhoneticGivenNameKey as String
- shared method CNContactPhoneticMiddleNameKey as String
- shared method CNContactPhoneticOrganizationNameKey as String
- shared method CNContactPostalAddressesKey as String
- shared method CNContactPreviousFamilyNameKey as String
- shared method CNContactPropertyNotFetchedExceptionName as String
- shared method CNContactRelationsKey as String
- shared method CNContactSocialProfilesKey as String
- shared method CNContactThumbnailImageDataKey as String
- shared method CNContactTypeKey as String
- shared method CNContactUrlAddressesKey as String
- shared method descriptorForAllComparatorKeys as CNKeyDescriptorMBS
- shared method localizedStringForKey(key as String) as String
- shared method predicateForContactsInContainerWithIdentifier(containerIdentifier as String) as NSPredicateMBS
- shared method predicateForContactsInGroupWithIdentifier(groupIdentifier as String) as NSPredicateMBS
- shared method predicateForContactsMatchingEmailAddress(emailAddress as String) as NSPredicateMBS
- shared method predicateForContactsMatchingName(name as String) as NSPredicateMBS
- shared method predicateForContactsMatchingPhoneNumber(phoneNumber as CNPhoneNumberMBS) as NSPredicateMBS
- shared method predicateForContactsWithIdentifiers(Identifiers() as String) as NSPredicateMBS
- 6 constants
Sort Orders
Constant | Value | Description |
---|---|---|
CNContactSortOrderFamilyName | 3 |
Order by Family Name. |
CNContactSortOrderGivenName | 2 |
Order by Given Name. |
CNContactSortOrderNone | 0 |
Order by no order. |
CNContactSortOrderUserDefault | 1 |
Order by user preference. |
Contact Types
Constant | Value | Description |
---|---|---|
CNContactTypeOrganization | 1 |
The contact is an Organization. |
CNContactTypePerson | 0 |
The contact is a person. |
This class has no sub classes.
Some methods using this class:
- CNContactMBS.mutableCopy as CNMutableContactMBS
- CNSaveRequestMBS.addContact(contact as CNMutableContactMBS, ContainerIdentifier as String)
- CNSaveRequestMBS.deleteContact(contact as CNMutableContactMBS)
- CNSaveRequestMBS.updateContact(contact as CNMutableContactMBS)
Some examples using this class:
Blog Entries
Release notes
- Version 20.5
- Added phoneticOrganizationName property for CNContactMBS class and phoneticOrganizationName property for CNMutableContactMBS class.
The items on this page are in the following plugins: MBS Mac64bit Plugin.
CNLabeledValueMBS - CNMutableGroupMBS