#import <AMInstance.h>
Public Member Functions | |
(id) | - initWithParent:parentUid: |
Creates a new instance object. | |
(void) | - kill |
Kills the instance. | |
Protected Attributes | |
UID | uid |
UID | parentUid |
Properties | |
id | parent |
The parent object of the instance. | |
id | listener |
The optional listener for the instance's events. |
This class is not destined to be used directly, but to be derived.
- (id) initWithParent: | (id) | _parent | ||
parentUid: | (UID) | _parentUid | ||
Creates a new instance object.
parent | The parent object of the instance. The parent must implement the AMInstanciable protocol. | |
parentUid | The unique ID of the object holding this instance (usually the upper instance in the hierarchy). |
- (void) kill |
Kills the instance.
Needs to be overriden in derived classes! The message destroyInstance is sent to the parent with this instance as the target.