Adds or replaces an entry for an object accessor function to an object accessor dispatch table.
- macOS 10.0+
- Core Services
The object type of the Apple event objects located by this accessor. See
A universal procedure pointer to the object accessor function to install. See
A reference constant the Apple Event Manager passes to the object accessor function whenever it calls the function. If your object accessor function doesn’t require a reference constant, pass 0 for this parameter. To change the value of the reference constant, you must call
Specifies the object accessor dispatch table to add the entry to. Pass
TRUEto add the entry to the system object accessor dispatch table or
FALSEto add the entry to your application’s object accessor dispatch table. Use of the system object accessor dispatch table is not recommended.
A result code. See Result Codes.
AEInstall function adds or replaces an entry to either the application or system object accessor dispatch table.
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.
If your Carbon application running in Mac OS 8 or OS 9 installs a system object accessor function in its application heap, rather than in the system heap, you must call
AERemove to remove the function before your application terminates.