Invokes the appropriate object accessor function for a specific desired type and container type.
- macOS 10.0+
- Core Services
The object class of the container for the desired objects. See
The key form that specifies how to find the object within the container. Key form constants are described in Key Form and Descriptor Type Object Specifier Constants. See
A pointer to the key data that identifies the object within the container. The type of this data is form-specific. That is,
formtypically has key data of type
A result code. See Result Codes.
AECall returns any result codes returned by the object accessor function it calls.
If you want your application to do some of the Apple event object resolution normally performed by the
AEResolve function, you can use
AECall to invoke an object accessor function. This might be useful, for example, if you have installed an object accessor function using
type for the
desired parameter and
type for the
container parameter. To return a list of tokens for a request like “line one of every window” the object accessor function can create an empty list, then call
AECall for each requested element, adding tokens for each element to the list one at a time.
The parameters of
AECall are identical to the parameters of an object accessor function, as described in
OSLAccessor with one exception—the Apple Event Manager adds a reference constant parameter each time it calls the object accessor function.
You can also call a specific object accessor function directly through its universal procedure pointer with one of the invoke functions described in Creating, Calling, and Deleting Universal Procedure Pointers.
In macOS, your application can not make an object callback function available to other applications by installing it in a system object accessor dispatch table.