2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Dispose of a BOOPSI Object.
8 #include <intuition/classes.h>
9 #include <proto/alib.h>
10 #include <clib/intuition_protos.h>
13 /*****************************************************************************
16 #include <intuition/classusr.h>
17 #include <proto/boopsi.h>
19 AROS_LH1(void, DisposeObject
,
22 AROS_LHA(APTR
, object
, A0
),
25 struct Library
*, BOOPSIBase
, 6, BOOPSI
)
28 Deletes a BOOPSI object. All memory associated with the object
29 is freed. The object must have been created with NewObject().
30 Some object contain other object which might be freed as well
31 when this function is used on the "parent" while others might
32 also contain children but won't free them. Read the documentation
33 of the class carefully to find out how it behaves.
36 object - The result of a call to NewObject() or a similar function,
43 This functions sends OM_DISPOSE to the object.
45 Be careful not to use this function inside of OM_NEW to dispose
46 the current object. This can cause massive problems. Use
47 CoerceMethod() on the current class and object instead.
54 NewObject(), SetAttrs((), GetAttr(), MakeClass()
55 "Basic Object-Oriented Programming System for Intuition" and
56 "boopsi Class Reference" Dokument.
61 29-10-95 digulla automatically created from
62 intuition_lib.fd and clib/intuition_protos.h
64 *****************************************************************************/
67 ULONG MethodID
= OM_DISPOSE
;
72 OCLASS (object
)->cl_ObjectCount
--;
74 DoMethodA (object
, (Msg
)&MethodID
);