AERemoveObjectAccessor(_:_:_:_:)
Removes an object accessor function from an object accessor dispatch table.
Declaration
func AERemoveObjectAccessor(_ desiredClass: DescType, _ containerType: DescType, _ theAccessor: OSLAccessorUPP!, _ isSysHandler: Bool) -> OSErrParameters
- desiredClass:
The object class of the Apple event objects located by the object accessor function to remove. Pass the value
typeWildCardto remove an object accessor function whose entry in an object accessor dispatch table specifiestypeWildCardas the object class. Pass the valuecPropertyto remove an object accessor function whose entry in an object accessor dispatch table specifiescProperty(a constant used to specify a property of any object class). Some other possible values are defined in 1556368 Object_class_id_constants. See Desctype. - containerType:
The descriptor type of the token that identifies the container for the objects located by the object accessor function to remove. (Token is defined in 1446783 Aedisposetoken.) Pass the value
typeWildCardto remove an object accessor function whose entry in an object accessor dispatch table specifiestypeWildCardas the descriptor type of the token used to specify the container type. See Desctype. - theAccessor:
A universal procedure pointer to the special handler to remove. Although the
functionClassparameter is sufficient to identify the handler to remove, you can identify the handler explicitly as a safeguard. If you passNULLfor this parameter, the Apple Event Manager relies solely on the function class to identify the handler. A universal procedure pointer (UPP) to the object accessor function to remove. Although the parametersdesiredClassandcontainerTypeare sufficient to identify the function to remove, you can identify the function explicitly by providing a UPP in this parameter. If you passNULLfor this parameter, the Apple Event Manager relies solely on the desired class and container type. See Oslaccessorupp. - isSysHandler:
Specifies the object accessor dispatch table to remove the object accessor function from. Pass
TRUEto remove the object accessor function from the system object accessor dispatch table orFALSEto remove the object accessor function from your application’s object accessor dispatch table. Use of the system object accessor dispatch table is not recommended.
Return Value
A result code. See Result Codes.
Discussion
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.