NSArray Class Reference

NSArray class operates array of objects. More...

#import <nsarray.h>

Inheritance diagram for NSArray:

NSObject NSMutableArray List of all members.

Public Member Functions

(id) - initWithObject:
 Initialize array by an argument.
Returns:
The object itself.

(id) - initWithObjects:
 Initialize array by some arguments.
Returns:
The object itself.

(id) - initWithObjects:count:
 Initialize array by vector of objects.
Returns:
The object itself.

(id) - initWithGArray:
 Generate array by GPtrArray data.
(void) - dealloc
 Release the array and it's contents.
(uint_t) - count
 Get number of items in an array.
Returns:
Number of items.

(id) - objectAtIndex:
 Get nth object in the array.
(GPtrArray *) - gArray
 Get content data.

Static Public Member Functions

(id) + arrayWithObject:
 Make the array which has an object.
(id) + arrayWithObjects:
 Make the array which has some objects.

Protected Attributes

GPtrArray * array_body

Detailed Description

NSArray class operates array of objects.

Description
NSArray class operates array of objects.


Member Function Documentation

+ (id) arrayWithObject: (id)  obj  
 

Make the array which has an object.

Parameters:
obj Source object.
Description
Make the array which has an object.

+ (id) arrayWithObjects: (id)  obj
,   ...
 
 

Make the array which has some objects.

Parameters:
obj List of objects.
Description
Make the array which has some objects.

- (uint_t) count  
 

Get number of items in an array.

Returns:
Number of items.

Description
Get number of items in an array.

- (void) dealloc  
 

Release the array and it's contents.

Description
Release the array and it's contents.

Reimplemented from NSObject.

Reimplemented in NSMutableArray.

- (GPtrArray *) gArray  
 

Get content data.

Returns:
Content data type.
Description
Get content data. This method is NOT defined in Cocoa library. Do not call this from the other library.
Warning:
This method depends on GLib. Do not call this from the extenal library and programs.

- (id) initWithGArray: (GPtrArray *)  garray  
 

Generate array by GPtrArray data.

Parameters:
garray Source garray data.
Description
Generate array by GPtrArray data. This method is depend on GLib and not defined in Cocoa library.
Warning:
Do not call this method from the outside of this library.

- (id) initWithObject: (id)  obj  
 

Initialize array by an argument.

Returns:
The object itself.

Description
Initialize array by an argument.

- (id) initWithObjects: (id)  obj
,   ...
 
 

Initialize array by some arguments.

Returns:
The object itself.

Description
Initialize array by some arguments.

- (id) initWithObjects: (id *)  objlist
count: (uint_t)  count
 
 

Initialize array by vector of objects.

Returns:
The object itself.

Parameters:
objlist Vector of objects.
count Number of items in the vector.
Description
Initialize array by vector of objects.

- (id) objectAtIndex: (uint_t)  index  
 

Get nth object in the array.

Parameters:
index Index number of item to get.
Description
Get nth object in the array.
Warning:
It's NOT allowed to access the out of range of the array.


Member Data Documentation

- (GPtrArray*) array_body [protected]
 

Array body


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