CFPlugInDynamicRegisterFunction

Header: CFPlugIn.h Carbon status: Under Evaluation

Defines a pointer to a plug-in's dynamic registration callback function. A callback which provides a plug-in the opportunity to dynamically register its types with the host.

typedef void(* CFPlugInDynamicRegisterFunction) (
    CFPlugInRef plugIn
);

You would declare your function like this if you were to name it MyCallback:

void MyCallback (
    CFPlugInRef plugIn
);
Parameter descriptions
plugIn

A reference to the plug-in that is engaged in dynamic registration. When writing in C++, this paramter functions as a this pointer for the plug-in.

DISCUSSION

A plug-in's CFPlugInDynamicRegisterFunction is called as the plug-in is being loaded. This provides the plugin the means to dynamically register its types and factories with the CFPlugIn host. The call is triggered by the presence of the key CFPlugInDynamicRegister key in the plug-in's Info.plist file.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)