Creates an ABSearchElement object that specifies a query for ABGroup records.
SDK
- macOS 10.2+
Framework
- Address
Book
Declaration
func ABGroupCreateSearchElement(_ property: CFString!, _ label: CFString!, _ key: CFString!, _ value: CFType Ref!, _ comparison: ABSearch Comparison) -> Unmanaged<ABSearch Element Ref>!
Parameters
property
The name of the property to search on. It cannot be
NULL
. For a full list of the properties, see Group Properties and Common Properties.label
The label name for a multi-value list. If
property
does not have multiple values, passNULL
. Ifproperty
does have multiple values, passNULL
to search all the values. By default, ABGroup records don’t contain any multi-value list properties.key
The key name for a dictionary. If
property
is not a dictionary, passNULL
. Ifproperty
is a dictionary, passNULL
to search all keys. By default, ABGroup records don’t contain any properties that are dictionaries.value
The value you are searching for. It cannot be
NULL
comparison
Specifies the type of comparison to perform, such as
k
orABEqual k
. For a full list, seeABPrefix Match Case Insensitive ABSearch
.Comparison
Return Value
A search element object that specifies a query according to the above parameters. You are responsible for releasing this object.
Discussion
Use the ABAddressBook ABCopy
function
to actually perform the query. Also, see ABSearchElement C for
more functions that create compound queries.