ObjFW
|
The protocol which all root classes implement. More...
#include <OFObject.h>
Public Member Functions | |
Class | class () |
BOOL | isKindOfClass: (Class class_) |
BOOL | respondsToSelector: (SEL selector) |
id | performSelector: (SEL selector) |
id | performSelector:withObject: (SEL selector,[withObject] id obj) |
id | performSelector:withObject:withObject: (SEL selector,[withObject] id obj1,[withObject] id obj2) |
BOOL | isEqual: (id obj) |
uint32_t | hash () |
id | retain () |
unsigned int | retainCount () |
void | release () |
id | autorelease () |
The protocol which all root classes implement.
id OFObject-p::autorelease | ( | ) | [virtual] |
Adds the object to the topmost OFAutoreleasePool of the thread's release pool stack.
uint32_t OFObject-p::hash | ( | ) | [virtual] |
Calculates a hash for the object.
Classes containing data (like strings, arrays, lists etc.) should reimplement this!
Reimplemented in OFHashAlreadyCalculatedException.
BOOL OFObject-p::isEqual: | ( | id | obj | ) | [virtual] |
Checks two objects for equality.
Classes containing data (like strings, arrays, lists etc.) should reimplement this!
obj | The object which should be tested for equality |
BOOL OFObject-p::isKindOfClass: | ( | Class | class_ | ) | [virtual] |
class_ | The class whose kind is checked |
id OFObject-p::performSelector: | ( | SEL | selector | ) | [virtual] |
Performs the specified selector.
selector | The selector to perform |
id OFObject-p::performSelector:withObject: | ( | SEL | selector, |
[withObject] id | obj | ||
) | [virtual] |
Performs the specified selector with the specified object.
selector | The selector to perform |
obj | The object that is passed to the method specified by the selector |
id OFObject-p::performSelector:withObject:withObject: | ( | SEL | selector, |
[withObject] id | obj1, | ||
[withObject] id | obj2 | ||
) | [virtual] |
Performs the specified selector with the specified objects.
selector | The selector to perform |
obj1 | The first object that is passed to the method specified by the selector |
obj2 | The second object that is passed to the method specified by the selector |
void OFObject-p::release | ( | ) | [virtual] |
Decreases the retain count.
Each time an object is released, the retain count gets decreased and the object deallocated if it reaches 0.
Reimplemented in OFAutoreleasePool.
BOOL OFObject-p::respondsToSelector: | ( | SEL | selector | ) | [virtual] |
selector | The selector which should be checked for respondance |
id OFObject-p::retain | ( | ) | [virtual] |
Increases the retain count.
Each time an object is released, the retain count gets decreased and the object deallocated if it reaches 0.
unsigned int OFObject-p::retainCount | ( | ) | [virtual] |