Instance Property

firstObject

The first object in the array.

Declaration

@property(nonatomic, readonly) ObjectType firstObject;

Discussion

If the array is empty, returns nil.

See Also

Querying an Array

- containsObject:

Returns a Boolean value that indicates whether a given object is present in the array.

count

The number of objects in the array.

- getObjects:

Copies all the objects contained in the array to aBuffer.

Deprecated
- getObjects:range:

Copies the objects contained in the array that fall within the specified range to aBuffer.

lastObject

The last object in the array.

- objectAtIndex:

Returns the object located at the specified index.

- objectAtIndexedSubscript:

Returns the object at the specified index.

- objectsAtIndexes:

Returns an array containing the objects in the array at the indexes specified by a given index set.

- objectEnumerator

Returns an enumerator object that lets you access each object in the array.

- reverseObjectEnumerator

Returns an enumerator object that lets you access each object in the array, in reverse order.