Public Member Functions

<OFObject> Protocol Reference

The protocol which all root classes implement. More...

#import <OFObject.h>

Inheritance diagram for <OFObject>:
<OFApplicationDelegate> <OFCollection> OFObject <OFStreamObserverDelegate> <OFStringXMLUnescapingDelegate> <OFXMLElementBuilderDelegate> <OFXMLParserDelegate> OFArray OFDictionary OFList OFAllocFailedException OFApplication OFArray OFAutoreleasePool OFDataArray OFDate OFDictionary OFEnumerator OFException OFHash OFHTTPRequest OFHTTPRequestResult OFList OFMutex OFNumber OFPlugin OFStream OFStreamObserver OFString OFThread OFTLSKey OFURL OFXMLAttribute OFXMLElement OFXMLElementBuilder OFXMLParser OFXMLParser

List of all members.

Public Member Functions

(Class) - class
(BOOL) - isKindOfClass:
(BOOL) - respondsToSelector:
(id) - performSelector:
(id) - performSelector:withObject:
(id) - performSelector:withObject:withObject:
(BOOL) - isEqual:
(uint32_t) - hash
(id) - retain
(unsigned int) - retainCount
(void) - release
(id) - autorelease

Detailed Description

The protocol which all root classes implement.


Member Function Documentation

- (id) autorelease  

Adds the object to the topmost OFAutoreleasePool of the thread's release pool stack.

- (Class) class  
Returns:
The class of the object

Reimplemented in OFObject.

- (uint32_t) hash  

Calculates a hash for the object.

Classes containing data (like strings, arrays, lists etc.) should reimplement this!

Returns:
A 32 bit hash for the object

Reimplemented in OFHashAlreadyCalculatedException.

- (BOOL) isEqual: (id)  obj  

Checks two objects for equality.

Classes containing data (like strings, arrays, lists etc.) should reimplement this!

Parameters:
obj The object which should be tested for equality
Returns:
A boolean whether the object is equal to the specified object
- (BOOL) isKindOfClass: (Class)  class_  
Parameters:
class_ The class whose kind is checked
Returns:
A boolean whether the object is of the specified kind
- (id) performSelector: (SEL)  selector  

Performs the specified selector.

Parameters:
selector The selector to perform
Returns:
The object returned by the method specified by the selector
- (id) performSelector: (SEL)  selector
withObject: (id)  obj 

Performs the specified selector with the specified object.

Parameters:
selector The selector to perform
obj The object that is passed to the method specified by the selector
Returns:
The object returned by the method specified by the selector
- (id) performSelector: (SEL)  selector
withObject: (id)  obj1
withObject: (id)  obj2 

Performs the specified selector with the specified objects.

Parameters:
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
Returns:
The object returned by the method specified by the selector
- (void) release  

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) respondsToSelector: (SEL)  selector  
Parameters:
selector The selector which should be checked for respondance
Returns:
A boolean whether the objects responds to the specified selector
- (id) retain  

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) retainCount  
Returns:
The retain count

The documentation for this protocol was generated from the following file:
 All Classes Functions Variables