2000-03-05 17:39:33 +00:00
|
|
|
<html><head>
|
|
|
|
<title>NSMutableArray</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<a href="NSMethodSignature.html">[Previous]</a>
|
2000-04-10 05:32:04 +00:00
|
|
|
<a href="Base.html">[Up]</a>
|
2000-03-05 17:39:33 +00:00
|
|
|
<a href="NSMutableAttributedString.html">[Next]</a>
|
|
|
|
<h1>NSMutableArray</h1>
|
|
|
|
<h3>Authors</h3>
|
|
|
|
<dl>
|
|
|
|
<dt><a href="http://www.gnustep.org/developers/whoiswho.html">Richard Frith-Macdonald</a>
|
|
|
|
<dd>
|
|
|
|
</dl>
|
|
|
|
<p>Version: 0.1</p>
|
|
|
|
<p>Date: 28 February, 2000</p>
|
|
|
|
<h2><a name="cont-0">NSMutableArray</a></h2>
|
|
|
|
<h2><a name="NSMutableArray">NSMutableArray</a></h2>
|
|
|
|
<p><b>Declared in:</b> Foundation/NSArray.h</p>
|
|
|
|
<p><b>Inherits from:</b> NSArray</p>
|
|
|
|
<p><b>Conforms to:</b> NSCoding
|
|
|
|
</p>
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li><a href="NSMutableArray.html#method-0">+arrayWithCapacity:</a>
|
|
|
|
<li><a href="NSMutableArray.html#method-1">-addObject:</a>
|
|
|
|
<li><a href="NSMutableArray.html#method-2">-addObjectsFromArray:</a>
|
|
|
|
<li><a href="NSMutableArray.html#method-3">-initWithCapacity:</a>
|
|
|
|
<li><a href="NSMutableArray.html#method-4">-insertObject:</a>
|
|
|
|
<li><a href="NSMutableArray.html#method-5">-removeAllObjects</a>
|
|
|
|
<li><a href="NSMutableArray.html#method-6">-removeLastObject</a>
|
|
|
|
<li><a href="NSMutableArray.html#method-7">-removeObject:</a>
|
|
|
|
<li><a href="NSMutableArray.html#method-8">-removeObject:</a>
|
|
|
|
<li><a href="NSMutableArray.html#method-9">-removeObjectAtIndex:</a>
|
|
|
|
<li><a href="NSMutableArray.html#method-11">-removeObjectIdenticalTo:</a>
|
|
|
|
<li><a href="NSMutableArray.html#method-10">-removeObjectIdenticalTo:</a>
|
|
|
|
<li><a href="NSMutableArray.html#method-12">-removeObjectsFromIndices:numIndices:</a>
|
|
|
|
<li><a href="NSMutableArray.html#method-13">-removeObjectsInArray:</a>
|
|
|
|
<li><a href="NSMutableArray.html#method-14">-removeObjectsInRange:</a>
|
|
|
|
<li><a href="NSMutableArray.html#method-15">-replaceObjectAtIndex:withObject:</a>
|
|
|
|
<li><a href="NSMutableArray.html#method-16">-replaceObjectsInRange:withObjectsFromArray:</a>
|
|
|
|
<li><a href="NSMutableArray.html#method-17">-replaceObjectsInRange:withObjectsFromArray:</a>
|
|
|
|
<li><a href="NSMutableArray.html#method-18">-setArray:</a>
|
|
|
|
<li><a href="NSMutableArray.html#method-19">-sortUsingFunction:context:</a>
|
|
|
|
<li><a href="NSMutableArray.html#method-20">-sortUsingSelector:</a>
|
|
|
|
</ul>
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-0">arrayWithCapacity:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
+ (id) <b>arrayWithCapacity:</b> (unsigned int)numItems;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-1">addObject:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>addObject:</b> (id)anObject;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-2">addObjectsFromArray:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>addObjectsFromArray:</b> (NSArray*)otherArray;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-3">initWithCapacity:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (id) <b>initWithCapacity:</b> (unsigned int)numItems;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-4">insertObject:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>insertObject:</b> (id)anObject;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-5">removeAllObjects</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>removeAllObjects</b>;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-6">removeLastObject</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>removeLastObject</b>;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-7">removeObject:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>removeObject:</b> (id)anObject;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-8">removeObject:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>removeObject:</b> (id)anObject;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-9">removeObjectAtIndex:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>removeObjectAtIndex:</b> (unsigned int)index;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-10">removeObjectIdenticalTo:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>removeObjectIdenticalTo:</b> (id)anObject;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-11">removeObjectIdenticalTo:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>removeObjectIdenticalTo:</b> (id)anObject;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-12">removeObjectsFromIndices:numIndices:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>removeObjectsFromIndices:</b> (unsigned int*)indices <b>numIndices:</b> (unsigned int)count;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-13">removeObjectsInArray:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>removeObjectsInArray:</b> (NSArray*)otherArray;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-14">removeObjectsInRange:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>removeObjectsInRange:</b> (NSRange)aRange;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-15">replaceObjectAtIndex:withObject:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>replaceObjectAtIndex:</b> (unsigned int)index <b>withObject:</b> (id)anObject;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-16">replaceObjectsInRange:withObjectsFromArray:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>replaceObjectsInRange:</b> (NSRange)aRange <b>withObjectsFromArray:</b> (NSArray*)otherArray;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-17">replaceObjectsInRange:withObjectsFromArray:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>replaceObjectsInRange:</b> (NSRange)aRange <b>withObjectsFromArray:</b> (NSArray*)otherArray;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-18">setArray:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>setArray:</b> (NSArray*)otherArray;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-19">sortUsingFunction:context:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>sortUsingFunction:</b> (int(*)(id,id,void*))compare <b>context:</b> (void*)context;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-20">sortUsingSelector:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>sortUsingSelector:</b> (SEL)comparator;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|