Carbon


Comparison Operator Constants

Header: AERegistry.h

Specify a comparison operation to perform on two operands.

enum {
    kAEAsk = 'ask ',
    kAEBefore = 'befo',
    kAEBeginning = 'bgng',
    kAEBeginsWith = 'bgwt',
    kAEBeginTransaction = 'begi',
    kAEBold = 'bold',
    kAECaseSensEquals = 'cseq',
    kAECentered = 'cent',
    kAEChangeView = 'view',
    kAEClone = 'clon',
    kAEClose = 'clos',
    kAECondensed = 'cond',
    kAEContains = 'cont',
    kAECopy = 'copy',
    kAECoreSuite = 'core',
    kAECountElements = 'cnte',
    kAECreateElement = 'crel',
    kAECreatePublisher = 'cpub',
    kAECut = 'cut ',
    kAEDelete = 'delo'
};

Constant descriptions

kAEAsk
kAEBefore
kAEBeginning
kAEBeginsWith

The value of operand1 begins with the value of operand2 (for example, the string "operand" begins with the string "opera").

kAEBeginTransaction
kAEBold
kAECaseSensEquals
kAECentered
kAEChangeView
kAEClone
kAEClose
kAECondensed
kAEContains

The value of operand1 contains the value of operand2 (for example, the string "operand" contains the string "era").

kAECopy
kAECoreSuite

An Apple event in the Standard Suite.

kAECountElements
kAECreateElement
kAECreatePublisher
kAECut
kAEDelete

When you call the CreateCompDescriptor function, you pass one of these comparison operators in the comparisonOperator parameter. The CreateCompDescriptor function creates a comparison descriptor record that specifies how to compare one or more Apple event objects with either another Apple event object or a descriptor record.

The actual comparison of the two operands is performed by the object comparison function provided by the client application—see OSLCompareProcPtr. The way a comparison operator is interpreted is up to each application.

For related information, see “Constants for Object Specifier Records, Positions, and Logical and Comparison Operations”.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)