Contents

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>!) -> OSErr

Parameters

  • theLogicalTerms:

    A pointer to a list containing comparison descriptors (typeLogicalDescriptor), logical descriptors (typeCompDescriptor), or both. If the value of the parameter theLogicOperator is kAEAND or kAEOR, the list can contain any number of descriptors. If the value of the parameter theLogicOperator is kAENOT, 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 of kAENOT. 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 theLogicalTerms parameter. See Desctype.

  • disposeInputs:

    A Boolean value. Pass TRUE if the function should automatically dispose of the descriptors you have provided in the theLogicalTerms parameter or (FALSE) if your application will. A value of FALSE may 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.

See Also

Creating Object Specifiers