Platforms to show: All Mac Windows Linux Cross-Platform

Back to CNSaveRequestMBS class.

CNSaveRequestMBS.addContact(contact as CNMutableContactMBS, ContainerIdentifier as String)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Contacts MBS Mac64bit Plugin 16.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Adds the specified contact to the contact store.

contact: The new contact to add.
identifier: The identifier of the container to add the new contact. To add the new contact to the default container set identifier to "".

This method overrides any previously made deletion requests for the contact. The new contact may be modified by executing the save request.

Some examples using this method:

CNSaveRequestMBS.addGroup(group as CNMutableGroupMBS, identifier as String)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Contacts MBS Mac64bit Plugin 16.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Adds a group to the contact store.

group: The group to add.
identifier: The identifier of the container to add the new group. To add the new group to the default container, set identifier to "".

This method overrides any previously made delete request for the group.

CNSaveRequestMBS.addMember(contact as CNContactMBS, group as CNGroupMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Contacts MBS Mac64bit Plugin 16.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Adds a contact as a member of a group.

contact: The contact to add to the group membership.
group: The group to add the contact to its membership.

This method overrides any previously made remove membership request on the contact from the group.

CNSaveRequestMBS.addSubgroup(subgroup as CNGroupMBS, group as CNGroupMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Contacts MBS Mac64bit Plugin 16.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Adds a subgroup to a group.

CNSaveRequestMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Contacts MBS Mac64bit Plugin 16.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The constructor.

CNSaveRequestMBS.deleteContact(contact as CNMutableContactMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Contacts MBS Mac64bit Plugin 16.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Deletes a contact from the contact store.

contact: Contact to be delete.

CNSaveRequestMBS.deleteGroup(contact as CNMutableGroupMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Contacts MBS Mac64bit Plugin 16.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Deletes a group from the contact store.

group: The group to delete.

This method overrides any previously made add request on the group. The group to be deleted must already exist in the contact store. If it does not, the delete request fails, the CNErrorCodeRecordDoesNotExist error is thrown, and the CNErrorUserInfoAffectedRecordsKey array is updated to contain that object.

CNSaveRequestMBS.removeMember(contact as CNContactMBS, group as CNGroupMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Contacts MBS Mac64bit Plugin 16.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Removes a contact as a member of a group.

contact: The contact to remove from the group membership.
group: The group to remove the contact from its membership.

This method removes the contact from the group, but does not delete it from the contact store. This method overrides any previously made add membership request on the contact to the group.

CNSaveRequestMBS.removeSubgroup(subgroup as CNGroupMBS, group as CNGroupMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Contacts MBS Mac64bit Plugin 16.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Removes a subgroup from a group.

CNSaveRequestMBS.updateContact(contact as CNMutableContactMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Contacts MBS Mac64bit Plugin 16.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Updates an existing contact in the contact store.

contact: The contact to update.

The contact to be updated must already exist in the contact store. If it does not, the update request fails, the CNErrorCodeRecordDoesNotExist error occurs, and the CNErrorUserInfoAffectedRecordsKey array is updated to contain the object. Note that the contact may be modified when the save request is executing.

CNSaveRequestMBS.updateGroup(contact as CNMutableGroupMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Contacts MBS Mac64bit Plugin 16.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Updates an existing group in the contact store.

group: The group to update.

The group to be updated must already exist in the contact store. If it does not, the update request fails, the CNErrorCodeRecordDoesNotExist error is thrown, and the CNErrorUserInfoAffectedRecordsKey array is updated to contain that object.

The items on this page are in the following plugins: MBS Mac64bit Plugin.


The biggest plugin in space...