libs-base/Documentation/gsdoc/NSObject.html

360 lines
12 KiB
HTML
Raw Normal View History

<html><head>
<title>NSObject</title>
</head>
<body>
<a href ="NSNumberFormatter.html">[Previous]</a>
<a href ="Base.html">[Up]</a>
<a href ="NSPort.html">[Next]</a>
<h1>NSObject</h1>
<h3>Authors </h3>
<dl>
<dt><a href ="http://www.gnustep.org/developers/whoiswho.html">Richard Frith-Macdonald</a>
<dd>
</dl>
<p>Version: $Revision$</p>
<p>Date: $Date$</p>
<h2><a name ="cont-0">NSObject</a></h2>
<h2><a name ="NSObject">NSObject</a></h2>
<p><b>Declared in: </b> Foundation/NSObject.h</p>
<p><b>Conforms to: </b> NSObject
</p>
<hr>
<h2>Instance Variables </h2>
<ul>
</ul>
<h2>Methods </h2>
<ul>
<li><a href ="NSObject.html#method-0">+alloc</a>
<li><a href ="NSObject.html#method-1">+allocWithZone:</a>
<li><a href ="NSObject.html#method-2">+cancelPreviousPerformRequestsWithTarget:selector:</a>
<li><a href ="NSObject.html#method-3">+class</a>
<li><a href ="NSObject.html#method-4">+conformsToProtocol:</a>
<li><a href ="NSObject.html#method-5">+copyWithZone:</a>
<li><a href ="NSObject.html#method-6">+description</a>
<li><a href ="NSObject.html#method-7">+descriptionWithLocale:</a>
<li><a href ="NSObject.html#method-8">+descriptionWithLocale:indent:</a>
<li><a href ="NSObject.html#method-9">+descriptionWithLocale:indent:to:</a>
<li><a href ="NSObject.html#method-10">+initialize</a>
<li><a href ="NSObject.html#method-11">+instanceMethodForSelector:</a>
<li><a href ="NSObject.html#method-12">+instanceMethodSignatureForSelector:</a>
<li><a href ="NSObject.html#method-13">+instancesRespondToSelector:</a>
<li><a href ="NSObject.html#method-14">+load</a>
<li><a href ="NSObject.html#method-15">+mutableCopyWithZone:</a>
<li><a href ="NSObject.html#method-16">+new</a>
<li><a href ="NSObject.html#method-17">+poseAsClass:</a>
<li><a href ="NSObject.html#method-18">+setVersion:</a>
<li><a href ="NSObject.html#method-19">+superclass</a>
<li><a href ="NSObject.html#method-20">+version</a>
<li><a href ="NSObject.html#method-21">-awakeAfterUsingCoder:</a>
<li><a href ="NSObject.html#method-22">-classForArchiver</a>
<li><a href ="NSObject.html#method-23">-classForCoder</a>
<li><a href ="NSObject.html#method-24">-classForPortCoder</a>
<li><a href ="NSObject.html#method-25">-connection:handleRequest:</a>
<li><a href ="NSObject.html#method-26">-copy</a>
<li><a href ="NSObject.html#method-27">-dealloc</a>
<li><a href ="NSObject.html#method-28">-description</a>
<li><a href ="NSObject.html#method-29">-descriptionWithLocale:</a>
<li><a href ="NSObject.html#method-30">-descriptionWithLocale:indent:</a>
<li><a href ="NSObject.html#method-31">-descriptionWithLocale:indent:to:</a>
<li><a href ="NSObject.html#method-32">-doesNotRecognizeSelector:</a>
<li><a href ="NSObject.html#method-33">-forwardInvocation:</a>
<li><a href ="NSObject.html#method-34">-hash</a>
<li><a href ="NSObject.html#method-35">-init</a>
<li><a href ="NSObject.html#method-36">-isEqual:</a>
<li><a href ="NSObject.html#method-37">-methodForSelector:</a>
<li><a href ="NSObject.html#method-38">-methodSignatureForSelector:</a>
<li><a href ="NSObject.html#method-39">-mutableCopy</a>
<li><a href ="NSObject.html#method-40">-performSelector:withObject:</a>
<li><a href ="NSObject.html#method-41">-performSelector:withObject:afterDelay:inModes:</a>
<li><a href ="NSObject.html#method-42">-replacementObjectForArchiver:</a>
<li><a href ="NSObject.html#method-43">-replacementObjectForCoder:</a>
<li><a href ="NSObject.html#method-44">-replacementObjectForPortCoder:</a>
</ul>
<hr><h2>Class Methods </h2>
<h3><a name ="method-0">alloc</a></h3>
+ (id) <b>alloc</b>;<br>
<hr>
<h3><a name ="method-1">allocWithZone:</a></h3>
+ (id) <b>allocWithZone:</b> (NSZone*)zone;<br>
<hr>
<h3><a name ="method-2">cancelPreviousPerformRequestsWithTarget:selector:</a></h3>
+ (void) <b>cancelPreviousPerformRequestsWithTarget:</b> (id)aTarget <b>selector:</b> (SEL)aSelector;<br>
<hr>
<h3><a name ="method-3">class</a></h3>
+ (Class) <b>class</b>;<br>
<hr>
<h3><a name ="method-4">conformsToProtocol:</a></h3>
+ (BOOL) <b>conformsToProtocol:</b> (Protocol*)aProtocol;<br>
<hr>
<h3><a name ="method-5">copyWithZone:</a></h3>
+ (id) <b>copyWithZone:</b> (NSZone*)zone;<br>
<hr>
<h3><a name ="method-6">description</a></h3>
+ (NSString*) <b>description</b>;<br>
The <code>description</code> 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.
<hr>
<h3><a name ="method-7">descriptionWithLocale:</a></h3>
+ (NSString*) <b>descriptionWithLocale:</b> (NSDictionary*)aLocale;<br>
Standards: GNUstep<br>
The default (NSOBject) implementation of this method simply calls
the <code>description</code> method and discards the locale
information.
<hr>
<h3><a name ="method-8">descriptionWithLocale:indent:</a></h3>
+ (NSString*) <b>descriptionWithLocale:</b> (NSDictionary*)aLocale <b>indent:</b> (unsigned int)level;<br>
Standards: GNUstep<br>
The default (NSObject) implementation of this method simply calls
the <code>descriptionWithLocale:</code> method and discards the
level information.
<hr>
<h3><a name ="method-9">descriptionWithLocale:indent:to:</a></h3>
+ (NSString*) <b>descriptionWithLocale:</b> (NSDictionary*)aLocale <b>indent:</b> (unsigned int)level <b>to:</b> (id&#60;GNUDescriptionDestination>)output;<br>
Standards: GNUstep<br>
The default (NSObject) implementation of this method simply calls
the <code>descriptionWithLocale:indent:</code> method and appends
the value returned by that method to the output object.
<hr>
<h3><a name ="method-10">initialize</a></h3>
+ (void) <b>initialize</b>;<br>
<hr>
<h3><a name ="method-11">instanceMethodForSelector:</a></h3>
+ (IMP) <b>instanceMethodForSelector:</b> (SEL)aSelector;<br>
<hr>
<h3><a name ="method-12">instanceMethodSignatureForSelector:</a></h3>
+ (NSMethodSignature*) <b>instanceMethodSignatureForSelector:</b> (SEL)aSelector;<br>
Returns a method signature object representing the
method implemented for instsances of this class which
corresponds to the supplied selector.
<hr>
<h3><a name ="method-13">instancesRespondToSelector:</a></h3>
+ (BOOL) <b>instancesRespondToSelector:</b> (SEL)aSelector;<br>
<hr>
<h3><a name ="method-14">load</a></h3>
+ (void) <b>load</b>;<br>
<hr>
<h3><a name ="method-15">mutableCopyWithZone:</a></h3>
+ (id) <b>mutableCopyWithZone:</b> (NSZone*)zone;<br>
<hr>
<h3><a name ="method-16">new</a></h3>
+ (id) <b>new</b>;<br>
<hr>
<h3><a name ="method-17">poseAsClass:</a></h3>
+ (void) <b>poseAsClass:</b> (Class)aClass;<br>
<hr>
<h3><a name ="method-18">setVersion:</a></h3>
+ (void) <b>setVersion:</b> (int)aVersion;<br>
<hr>
<h3><a name ="method-19">superclass</a></h3>
+ (Class) <b>superclass</b>;<br>
<hr>
<h3><a name ="method-20">version</a></h3>
+ (int) <b>version</b>;<br>
<hr>
<hr><h2>Instances Methods </h2>
<h3><a name ="method-21">awakeAfterUsingCoder:</a></h3>
- (id) <b>awakeAfterUsingCoder:</b> (NSCoder*)aDecoder;<br>
<hr>
<h3><a name ="method-22">classForArchiver</a></h3>
- (Class) <b>classForArchiver</b>;<br>
<hr>
<h3><a name ="method-23">classForCoder</a></h3>
- (Class) <b>classForCoder</b>;<br>
<hr>
<h3><a name ="method-24">classForPortCoder</a></h3>
- (Class) <b>classForPortCoder</b>;<br>
<hr>
<h3><a name ="method-25">connection:handleRequest:</a></h3>
- (BOOL) <b>connection:</b> (NSConnection*)connection <b>handleRequest:</b> (NSDistantObjectRequest*)doreq;<br>
<hr>
<h3><a name ="method-26">copy</a></h3>
- (id) <b>copy</b>;<br>
<hr>
<h3><a name ="method-27">dealloc</a></h3>
- (void) <b>dealloc</b>;<br>
<hr>
<h3><a name ="method-28">description</a></h3>
- (NSString*) <b>description</b>;<br>
<p>
The <code>description</code> 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.
</p>
<p>
Generally, classes other than NSObject will override this method
to provide a more informative description of their instances.
</p>
<hr>
<h3><a name ="method-29">descriptionWithLocale:</a></h3>
- (NSString*) <b>descriptionWithLocale:</b> (NSDictionary*)aLocale;<br>
Standards: GNUstep<br>
The default (NSOBject) implementation of this method simply calls
the <code>description</code> method and discards the locale
information.
<hr>
<h3><a name ="method-30">descriptionWithLocale:indent:</a></h3>
- (NSString*) <b>descriptionWithLocale:</b> (NSDictionary*)aLocale <b>indent:</b> (unsigned int)level;<br>
Standards: GNUstep<br>
The default (NSObject) implementation of this method simply calls
the <code>descriptionWithLocale:</code> method and discards the
level information.
<hr>
<h3><a name ="method-31">descriptionWithLocale:indent:to:</a></h3>
- (NSString*) <b>descriptionWithLocale:</b> (NSDictionary*)aLocale <b>indent:</b> (unsigned int)level <b>to:</b> (id&#60;GNUDescriptionDestination>)output;<br>
Standards: GNUstep<br>
The default (NSObject) implementation of this method simply calls
the <code>descriptionWithLocale:indent:</code> method and appends
the value returned by that method to the output object.
<p>
Property-list classes (NSString, NSArray, NSDictionary and
NSData) will override this method in order to efficiently
write descriptions of themselves into property lists.
</p>
<hr>
<h3><a name ="method-32">doesNotRecognizeSelector:</a></h3>
- (void) <b>doesNotRecognizeSelector:</b> (SEL)aSelector;<br>
<hr>
<h3><a name ="method-33">forwardInvocation:</a></h3>
- (void) <b>forwardInvocation:</b> (NSInvocation*)anInvocation;<br>
<hr>
<h3><a name ="method-34">hash</a></h3>
- (unsigned int) <b>hash</b>;<br>
<hr>
<h3><a name ="method-35">init</a></h3>
- (id) <b>init</b>;<br>
<hr>
<h3><a name ="method-36">isEqual:</a></h3>
- (BOOL) <b>isEqual:</b> (id)anObject;<br>
<hr>
<h3><a name ="method-37">methodForSelector:</a></h3>
- (IMP) <b>methodForSelector:</b> (SEL)aSelector;<br>
<hr>
<h3><a name ="method-38">methodSignatureForSelector:</a></h3>
- (NSMethodSignature*) <b>methodSignatureForSelector:</b> (SEL)aSelector;<br>
Returns a method signature object representing the
method implemented in this object which corresponds to
the supplied selector.
<hr>
<h3><a name ="method-39">mutableCopy</a></h3>
- (id) <b>mutableCopy</b>;<br>
<hr>
<h3><a name ="method-40">performSelector:withObject:</a></h3>
- (void) <b>performSelector:</b> (SEL)aSelector <b>withObject:</b> (id)anArgument;<br>
<hr>
<h3><a name ="method-41">performSelector:withObject:afterDelay:inModes:</a></h3>
- (void) <b>performSelector:</b> (SEL)aSelector <b>withObject:</b> (id)anArgument <b>afterDelay:</b> (NSTimeInterval)delay <b>inModes:</b> (NSArray*)modes;<br>
<hr>
<h3><a name ="method-42">replacementObjectForArchiver:</a></h3>
- (id) <b>replacementObjectForArchiver:</b> (NSArchiver*)anArchiver;<br>
<hr>
<h3><a name ="method-43">replacementObjectForCoder:</a></h3>
- (id) <b>replacementObjectForCoder:</b> (NSCoder*)aCoder;<br>
<hr>
<h3><a name ="method-44">replacementObjectForPortCoder:</a></h3>
- (id) <b>replacementObjectForPortCoder:</b> (NSPortCoder*)aCoder;<br>
<hr>
</body>
</html>