(C) 1998 AROS - The Amiga Research OS


NAME
#include <proto/oop.h>

APTR NewObject (classPtr , classID , tagList)

LOCATION
In OOPBase at offset 5

SYNOPSIS
struct IClass * classPtr
UBYTE * classID
struct TagItem * tagList

FUNCTION
Creates a new object of given class based on the TagItem parameters passed.

INPUTS
classPtr
pointer to a class. Use this if the class to create an instance of is private.
classID
Public ID of the class to create an instance of. Use this if the class is public.
tagList
List of TagItems (creation time attributes), that specifies what initial properties the new object should have.

RESULT
Pointer to the new object, or NULL if object creation failed.

EXAMPLE

SEE ALSO
DisposeObject()

NOTES
You should supply one of classPtr and classID, never both. Use NULL for the unspecified one.

BUGS

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
29.09.1998 nlorentz
Fixed bugs (memory leak, and class creation failing after 14 runs of demo proggie)
23.09.1998 nlorentz
Added SetAttrs() and GetAttr() functions
19.09.1998 nlorentz
Added two new functions + fixed bugs
13.09.1998 nlorentz
API Polish
02.09.1998 nlorentz
API polish