NSMutableArray Class Reference

NSMutableArray class operates array of objects More...

#import <nsmutablearray.h>

Inheritance diagram for NSMutableArray:

NSArray NSObject List of all members.

Public Member Functions

(id) - initWithCapacity:
 Initialize NSMutableArray instance.
(void) - dealloc
 Release the array and it's contents.
(void) - addObject:
 Add object as the last item of array.
(void) - addObjectsFromArray:
 Append all objects in source array.
(void) - insertObject:atIndex:
 Insert new object into the given position.
(void) - replaceObjectAtIndex:withObject:
 Replace object at given index.
(id) - removeObjectAtIndex:
 Remove an object in array.

Static Public Member Functions

(id) + arrayWithCapacity:
 Make the array which has num objects.

Protected Attributes

uint_t max_count

Detailed Description

NSMutableArray class operates array of objects

Description
NSMutableArray class operates array of objects. The number of elements in an array is can by changed dynamically.


Member Function Documentation

- (void) addObject: (id)  obj  
 

Add object as the last item of array.

Description
Add object as the last item of array.

- (void) addObjectsFromArray: (NSArray *)  src  
 

Append all objects in source array.

Parameters:
src Source array
Description
Append all objects in source array.

+ (id) arrayWithCapacity: (uint_t)  num  
 

Make the array which has num objects.

Description
Make the array which has num object. All initial member is initialized to nil.

- (void) dealloc  
 

Release the array and it's contents.

Description
Release the array and it's contents.

Reimplemented from NSArray.

- (id) initWithCapacity: (uint_t)  num  
 

Initialize NSMutableArray instance.

Description
Initialize NSMutableArray instance with num slots. The number can be changed.

- (void) insertObject: (id)  obj
atIndex: (uint_t)  index
 
 

Insert new object into the given position.

Parameters:
obj Source object to add.
index Index to add object.
Description
Insert new object into the given position. The position is defined by parameter index. All items after new objects are shifted +1.

- (id) removeObjectAtIndex: (uint_t)  index  
 

Remove an object in array.

Parameters:
index Target index number.
Description
Remove an object in array. If the index value is invalid for the array, error is occured.

- (void) replaceObjectAtIndex: (uint_t)  index
withObject: (id)  obj
 
 

Replace object at given index.

Parameters:
index Source index.
obj Source object to replace.


Member Data Documentation

- (uint_t) max_count [protected]
 

Real number of items in array.


The documentation for this class was generated from the following files:
Generated on Fri Feb 3 01:08:12 2006 for Cacao by  doxygen 1.4.5