ABGroupAddGroup(_:_:)
Adds a subgroup to another group.
Declaration
func ABGroupAddGroup(_ group: ABGroupRef!, _ groupToAdd: ABGroupRef!) -> BoolParameters
- group:
The group you wish to add a subgroup to. If
NULL, this function raises an exception. - groupToAdd:
The subgroup you wish to add to
group.
Return Value
Returns true ifsuccessful. If the group argumentis already part of the receiver, this function does nothing andreturns false. If adding the group wouldcreate a recursion, this function also does nothing and returns false. Forexample, if the group “Animal Lovers” is in “Dog Lovers,“and you add “Dog Lovers” to “Animal Lovers,” that wouldcreate a recursion, which this function won’t allow.
See Also
Groups
ABCopyArrayOfAllGroups(_:)ABGroupAddMember(_:_:_:)ABGroupCopyArrayOfAllMembers(_:)ABGroupCopyArrayOfAllSubgroups(_:)ABGroupCopyDistributionIdentifier(_:_:_:)ABGroupCopyParentGroups(_:)ABGroupCreate()ABGroupCreateSearchElement(_:_:_:_:_:)ABGroupRemoveGroup(_:_:)ABGroupRemoveMember(_:_:_:)ABGroupSetDistributionIdentifier(_:_:_:_:)