Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.
Platforms to show: All Mac Windows Linux Cross-Platform
ABGroupMBS class
Super class: ABRecordMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
class | Addressbook | MBS MacCocoa Plugin | 7.1 | Yes | No | No | Yes, macOS only | No |
Example:
dim a as new ABAddressBookMBS
dim g() as ABGroupMBS = a.groups
dim names() as string
for each gg as ABGroupMBS in g
names.append gg.DisplayName
next
MsgBox Join(names,EndOfLine)
It represents a group of people or other groups. No recursions allowed.
All methods in this class will catch exceptions from Cocoa and raise a NSExceptionMBS instead. Using the message, name and reason properties you can see what was the reason for this exception. Please report if you find a method which does not handle exceptions correct.
Subclass of the ABRecordMBS class.
- property distributionIdentifierForProperty(propertyName as string, person as ABPersonMBS) as String
- 9 methods
- method addMember(group as ABPersonMBS) as boolean
- method addSubgroup(group as ABGroupMBS) as boolean
- method Constructor
- method Constructor(addressBook as ABAddressBookMBS)
- method members as ABPersonMBS()
- method parentGroups as ABGroupMBS()
- method removeMember(group as ABPersonMBS) as boolean
- method removeSubgroup(group as ABGroupMBS) as boolean
- method subgroups as ABGroupMBS()
- 6 shared methods
- shared method addProperty(propertyName as string, type as Integer) as Integer
- shared method properties as string()
- shared method removeProperties(properties() as string) as Integer
- shared method removeProperty(propertyName as string) as Integer
- shared method searchElementForProperty(PropertyName as string, Label as string, Key as string, value as Variant, comparison as Integer) as ABSearchElementMBS
- shared method typeOfProperty(propertyName as string) as Integer
Super class ABRecordMBS
- 7 properties
- property account as ABAccountMBS
- property Addressbook as ABAddressBookMBS
- property Description as string
- property DisplayName as string
- property Handle as Integer
- property isReadOnly as boolean
- property uniqueId as string
- 5 methods
- method Constructor
- method removeValueForProperty(propertyName as string) as boolean
- method setValue(value as Variant, propertyName as string) as boolean
- method setValue(value as Variant, propertyName as string, byref error as NSErrorMBS) as boolean
- method valueForProperty(PropertyName as string) as Variant
This class has no sub classes.
Some methods using this class:
- ABAddressBookMBS.groupForName(name as string) as ABGroupMBS
- ABAddressBookMBS.groupForUniqueId(uniqueid as string) as ABGroupMBS
- ABAddressBookMBS.groupForUniqueId(uniqueid as string, account as ABAccountMBS) as ABGroupMBS
- ABAddressBookMBS.groups as ABGroupMBS()
- ABAddressBookMBS.groupsForAccount(account as ABAccountMBS) as ABGroupMBS()
- ABPeoplePickerViewMBS.deselectGroup(group as ABGroupMBS)
- ABPeoplePickerViewMBS.selectedGroups as ABGroupMBS()
- ABPeoplePickerViewMBS.selectGroup(group as ABGroupMBS, byExtendingSelection as boolean)
- ABPersonMBS.parentGroups as ABGroupMBS()
- ABPickerMBS.DeselectGroup(group as ABGroupMBS)
- ABPickerMBS.SelectedGroups as ABGroupMBS()
- ABPickerMBS.SelectGroup(group as ABGroupMBS, ExtendSelection as boolean)
Some examples which use this class:
- /MacCocoa/Addressbook/Addressbook Notifications
- /MacCocoa/Addressbook/Group members
- /MacCocoa/Addressbook/GroupsForAccounts Test
- /MacControls/PeoplePickerView
- /MacFrameworks/Addressbook People Picker
The items on this page are in the following plugins: MBS MacCocoa Plugin.
ABAddressBookMBS - ABMultiValueMBS
Links
MBS Xojo Plugins