[Previous]
[Up]
[Next]
NSObject
Authors
- Richard Frith-Macdonald
-
Version: $Revision$
Date: $Date$
Declared in: Foundation/NSObject.h
Conforms to: NSObject
Instance Variables
Methods
Class Methods
+ (id) alloc;
+ (id) allocWithZone: (NSZone*)zone;
+ (void) cancelPreviousPerformRequestsWithTarget: (id)aTarget selector: (SEL)aSelector;
+ (Class) class;
+ (BOOL) conformsToProtocol: (Protocol*)aProtocol;
+ (id) copyWithZone: (NSZone*)zone;
+ (NSString*) description;
The description
factory method describes the class
of the receiver. In the default GNUstep implementation, this
simply returns the name of the class as an NSString object.
+ (NSString*) descriptionWithLocale: (NSDictionary*)aLocale;
Standards: GNUstep
The default (NSOBject) implementation of this method simply calls
the description
method and discards the locale
information.
+ (NSString*) descriptionWithLocale: (NSDictionary*)aLocale indent: (unsigned int)level;
Standards: GNUstep
The default (NSObject) implementation of this method simply calls
the descriptionWithLocale:
method and discards the
level information.
+ (NSString*) descriptionWithLocale: (NSDictionary*)aLocale indent: (unsigned int)level to: (id<GNUDescriptionDestination>)output;
Standards: GNUstep
The default (NSObject) implementation of this method simply calls
the descriptionWithLocale:indent:
method and appends
the value returned by that method to the output object.
+ (void) initialize;
+ (IMP) instanceMethodForSelector: (SEL)aSelector;
+ (NSMethodSignature*) instanceMethodSignatureForSelector: (SEL)aSelector;
Returns a method signature object representing the
method implemented for instsances of this class which
corresponds to the supplied selector.
+ (BOOL) instancesRespondToSelector: (SEL)aSelector;
+ (void) load;
+ (id) mutableCopyWithZone: (NSZone*)zone;
+ (id) new;
+ (void) poseAsClass: (Class)aClass;
+ (void) setVersion: (int)aVersion;
+ (Class) superclass;
+ (int) version;
Instances Methods
- (id) awakeAfterUsingCoder: (NSCoder*)aDecoder;
- (Class) classForArchiver;
- (Class) classForCoder;
- (Class) classForPortCoder;
- (BOOL) connection: (NSConnection*)connection handleRequest: (NSDistantObjectRequest*)doreq;
- (id) copy;
- (void) dealloc;
- (NSString*) description;
The description
method describes the reciever.
In the default GNUstep implementation, this returns an NSString
object giving the name of the class of the receiver and the
hexadecimal representation of the recievers address enclosed
in angle brackets.
Generally, classes other than NSObject will override this method
to provide a more informative description of their instances.
- (NSString*) descriptionWithLocale: (NSDictionary*)aLocale;
Standards: GNUstep
The default (NSOBject) implementation of this method simply calls
the description
method and discards the locale
information.
- (NSString*) descriptionWithLocale: (NSDictionary*)aLocale indent: (unsigned int)level;
Standards: GNUstep
The default (NSObject) implementation of this method simply calls
the descriptionWithLocale:
method and discards the
level information.
- (NSString*) descriptionWithLocale: (NSDictionary*)aLocale indent: (unsigned int)level to: (id<GNUDescriptionDestination>)output;
Standards: GNUstep
The default (NSObject) implementation of this method simply calls
the descriptionWithLocale:indent:
method and appends
the value returned by that method to the output object.
Property-list classes (NSString, NSArray, NSDictionary and
NSData) will override this method in order to efficiently
write descriptions of themselves into property lists.
- (void) doesNotRecognizeSelector: (SEL)aSelector;
- (void) forwardInvocation: (NSInvocation*)anInvocation;
- (unsigned int) hash;
- (id) init;
- (BOOL) isEqual: (id)anObject;
- (IMP) methodForSelector: (SEL)aSelector;
- (NSMethodSignature*) methodSignatureForSelector: (SEL)aSelector;
Returns a method signature object representing the
method implemented in this object which corresponds to
the supplied selector.
- (id) mutableCopy;
- (void) performSelector: (SEL)aSelector withObject: (id)anArgument;
- (void) performSelector: (SEL)aSelector withObject: (id)anArgument afterDelay: (NSTimeInterval)delay inModes: (NSArray*)modes;
- (id) replacementObjectForArchiver: (NSArchiver*)anArchiver;
- (id) replacementObjectForCoder: (NSCoder*)aCoder;
- (id) replacementObjectForPortCoder: (NSPortCoder*)aCoder;