Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

NSArray Interface 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) NSArray: (id) 
(id) 
(id)  obj
 

Make the array which has an object.

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

+ (id) NSArray: (id) 
(id) 
(id)  obj
(id...) 
 

Make the array which has some objects.

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

- (uint_t) NSArray:
 

Get number of items in an array.

Returns:
Number of items.

Description
Get number of items in an array.

- (void) NSArray:
 

Release the array and it's contents.

Description
Release the array and it's contents.

Implements NSObject.

Implemented in NSMutableArray.

- (GPtrArray *) NSArray:
 

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) NSArray: (id) 
(GPtrArray *) 
(id)  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) NSArray: (id) 
(id) 
(id)  obj
 

Initialize array by an argument.

Returns:
The object itself.

Description
Initialize array by an argument.

- (id) NSArray: (id) 
(id) 
(id)  obj
(id...) 
 

Initialize array by some arguments.

Returns:
The object itself.

Description
Initialize array by some arguments.

- (id) NSArray: (id) 
(id *) 
(id)  objlist
count: (id) 
(uint_t) 
(id)  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) NSArray: (id) 
(uint_t) 
(id)  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* NSArray::array_body [protected]
 

Array body


The documentation for this interface was generated from the following file:
Generated on Wed Jul 14 18:32:13 2004 for Cacao by doxygen 1.3.6