CNContactMBS class
Online Documentation - Statistics - FAQ - Plugin Parts (All, Dependencies) - Class hierarchy
New in Version
22.2
22.3
22.4
22.5
23.0
23.1
23.2
23.3
23.4
23.5
24.0
24.1
The list of the topics,
classes,
interfaces,
controls,
modules,
global methods by category,
global methods by name,
screenshots,
licenses
and examples.
Platforms to show: All Mac Windows Linux Cross-Platform
CNContactMBS class
The class for a contact.
The CNContact is a thread-safe class that represents an immutable value object for contact properties, such as the first name and phone numbers of a contact. CNContact is similar to a complex Foundation collection, in that it has a mutable subclass (CNMutableContact). Neither the CNContact nor CNMutableContact class maintain a reference to their data store. Every contact has a unique ID, which you obtain using the identifier property.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 23 properties
- 15 methods
- 40 shared methods
- 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.
|
Sub classes:
Some methods using this class:
- CNContactFormatterMBS.attributedStringFromContact(contact as CNContactMBS, DefaultAttributes as Dictionary = nil) as NSAttributedStringMBS
- CNContactFormatterMBS.attributedStringFromContact(contact as CNContactMBS, Style as Integer, DefaultAttributes as Dictionary = nil) as NSAttributedStringMBS
- CNContactFormatterMBS.delimiterForContact(contact as CNContactMBS) as String
- CNContactStoreMBS.allContacts(byref error as NSErrorMBS) as CNContactMBS()
- CNContactStoreMBS.ContactsWithFetchRequest(fetchRequest as CNContactFetchRequestMBS, byref error as NSErrorMBS) as CNContactMBS()
- CNContactStoreMBS.unifiedContactsMatchingPredicate(predicate as NSPredicateMBS, keysToFetch() as CNKeyDescriptorMBS, byref error as NSErrorMBS) as CNContactMBS()
- CNContactStoreMBS.unifiedContactWithIdentifier(identifier as string, byref error as NSErrorMBS) as CNContactMBS
- CNContactVCardSerializationMBS.contactsWithData(Data as MemoryBlock, byref error as NSErrorMBS) as CNContactMBS()
- CNContactVCardSerializationMBS.dataWithContacts(Contacts() as CNContactMBS, byref error as NSErrorMBS) as MemoryBlock
- CNSaveRequestMBS.removeMember(contact as CNContactMBS, group as CNGroupMBS)
Some properties using for this class:
Some events using this class:
Some examples using this class:
Blog Entries
Release notes
- Version 20.5
- Added phoneticOrganizationName property for CNContactMBS class and phoneticOrganizationName property for CNMutableContactMBS class.
- Added predicateForContactsMatchingEmailAddress and predicateForContactsMatchingPhoneNumber methods for CNContactMBS class.
- Version 18.1
- Fixed problems with CNContactMBS phoneNumbers and others having wrong return type.
- Version 17.2
The items on this page are in the following plugins: MBS Mac64bit Plugin.
CNContactFormatterMBS
-
CNContactPickerMBS