CreateLogicalDescriptor(_:_:_:_:)
Creates a logical descriptor that specifies a logical operator and one or more logical terms for the Apple Event Manager to evaluate.
Declaration
func CreateLogicalDescriptor(_ theLogicalTerms: UnsafeMutablePointer<AEDescList>!, _ theLogicOperator: DescType, _ disposeInputs: Bool, _ theDescriptor: UnsafeMutablePointer<AEDesc>!) -> OSErrParameters
- theLogicalTerms:
A pointer to a list containing comparison descriptors (
typeLogicalDescriptor), logical descriptors (typeCompDescriptor), or both. If the value of the parametertheLogicOperatoriskAEANDorkAEOR, the list can contain any number of descriptors. If the value of the parametertheLogicOperatoriskAENOT, logically this list should contain a single descriptor. However, the function will not return an error if the list contains more than one descriptor for a logical operator ofkAENOT. See Aedesclist. - theLogicOperator:
A logical operator represented by one of the constants described in 1572744 Constants_for_object_specifiers_. What you pass for this parameter helps determine what you pass for the
theLogicalTermsparameter. See Desctype. - disposeInputs:
A Boolean value. Pass
TRUEif the function should automatically dispose of the descriptors you have provided in thetheLogicalTermsparameter or (FALSE) if your application will. A value ofFALSEmay be more efficient for some applications because it allows them to reuse descriptors. - theDescriptor:
A pointer to a descriptor. On successful return, the logical descriptor created by
CreateLogicalDescriptor. Your application must dispose of this descriptor after it has finished using it. See Aedesc.
Return Value
A result code. See Result Codes.
Discussion
The CreateLogicalDescriptor function creates a logical descriptor, which specifies a logical operator and one or more logical terms for the Apple Event Manager to evaluate.