Important: The information in this document is obsolete and should not be used for new development.
AEGetObjectAccessor
You can use theAEGetObjectAccessorfunction to get a pointer to an object accessor function and the value of its reference constant.
FUNCTION AEGetObjectAccessor (desiredClass: DescType; containerType: DescType; VAR theAccessor: AccessorProcPtr; VAR accessorRefcon: LongInt; isSysHandler: Boolean): OSErr;
desiredClass- The object class of the Apple event objects located by the requested object accessor function. This parameter can also contain the constant
typeWildCardor the constantcProperty.containerType- The descriptor type of the token that identifies the container for the objects located by the requested object accessor function. This parameter can also contain the constant
typeWildCard.theAccessor- The
AEGetObjectAccessorfunction returns a pointer to the requested object accessor function in this parameter.accessorRefcon- The
AEGetObjectAccessorfunction returns the reference constant from the object accessor dispatch table entry for the specified object accessor function in this parameter.isSysHandler- A value that specifies the object accessor table from which to get the object accessor function and its reference constant. If the value of
isSysHandlerisTRUE,AEGetObjectAccessorgets the function from the system object accessor dispatch table. If the value ofisSysHandlerisFALSE,AEGetObjectAccessorgets the function from the application's object accessor dispatch table.DESCRIPTION
TheAEGetObjectAccessorfunction returns a pointer to the object accessor function installed for the object class specified in thedesiredClassparameter and the descriptor type specified in thecontainerTypeparameter. It also returns the reference constant associated with the specified function. You must supply a value in theisSysHandlerparameter that specifies which object accessor dispatch table you want to get the function from.Calling
AEGetObjectAccessordoes not remove the object accessor function from an object accessor dispatch table.To get an object accessor function whose entry in an object accessor dispatch table specifies
typeWildCardas the object class, you must specifytypeWildCardas the value of thedesiredClassparameter. Similarly, to get an object accessor function whose entry in an object accessor dispatch table specifiestypeWildCardas the descriptor type of the token used to specify the container, you must specifytypeWildCardas the value of thecontainerTypeparameter.To get an object accessor function whose entry in an object accessor dispatch table specifies
cProperty(a constant used to specify a property of any object class), you must specifycPropertyas thedesiredClassparameter.RESULT CODES