OSAGetActiveProc
You can use theOSAGetActiveProcfunction to get a pointer to the active function that a scripting component is currently using.
FUNCTION OSAGetActiveProc(scriptingComponent: ComponentInstance; VAR activeProc: OSAActiveProcPtr; VAR refCon: LongInt): OSAError;
scriptingComponent
A component instance created by a prior call to the Component Manager functionOpenDefaultComponentorOpenComponent(see page 10-4).activeProc- The
OSAGetActiveProcfunction returns in this parameter a pointer to the active function currently set for the specified scripting component.refCon- The
OSAGetActiveProcfunction returns in this parameter the reference constant associated with the active function for the specified scripting component.RESULT CODES
noErr 0 No error errOSASystemError -1750 General scripting system error badComponentInstance $80008001 Invalid component instance
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help