UReanimator provides functions for creating objects using data from PPob resources.
Methods :
The methods in this class are:
Data Members:
There are no data members in this class.
Operation:
This class consists of a few static methods that can be called from anywhere in your code. There are no constructors or destructors for this class.
Source files:
Ancestors:
See Also:
Purpose :
Return a newly created View object initialized from a PPob resource.
Access:
Prototype:
static LView* CreateView(
ResIDT inViewID, LView* inSuperView, LCommander* inSuperCommander); Returns:
Purpose:
Associate a Listener with one or more Broadcasters specified as a list of Pane ID's stored in a resource.
Access:
Prototype:
static void LinkListenerToBroadcasters(
LListener* inListener, LView* inControlContainer, ResIDT inResListID); Returns:
Remarks:
Only Panes that are also Broadcasters are linked to the Listener. Panes that are not Broadcasters are ignored.
Purpose:
Associate a Listener with Controls specified as a list of Pane
IDs sotred in a `RidL' resoruce.
Access:
Prototype:
static void LinkListenerToControls(
LListener* inListener, LView* inControlContainer, ResIDT inResListID) Return:
Remarks:
You should probably use LinkListenerToBroadcasters() instead of this function. LinkListenerToBroadcasters() is more general since it handles all panes that are also Broadcasters rather than just Controls.
Purpose:
Create new objects from the data in a Stream and return a pointer
to the first object created. As it encounters PPob class IDs in
the stream, it calls URegistrar::CreateObject() to create those classes from data in the stream.
Access:
Prototype:
static void* ObjectsFromStream(
LStream* inStream ) Return:
Pointer to first created object.
Remarks:
This function is primarily for use by the ReadObjects() function, which first loads the PPob resource into memory, then calls this function to read thememory as a stream.
Purpose:
Create new objects from data in a PPob resource and return a pointer to the first object created.
Signals an exception if the version number of teh PPob resource does not match the version number expected by the library.
Access:
Prototype:
static void* ReadObjects(
OSType inResType, ResIDT inResID ) Return:
A pointer to the first created object.
Remarks:
Before calling, be sure to properly set the default Commander, View, and Attachable.