Instance Method

insertPointer:atIndex:

Inserts a pointer at a given index.

Declaration

- (void)insertPointer:(void *)item atIndex:(NSUInteger)index;

Parameters

item

The pointer to add.

index

The index of an element in the receiver. This value must be less than the count of the receiver.

Discussion

Elements at and above index, including NULL values, slide higher.

See Also

Managing the Collection

count

The number of elements in the receiver.

allObjects

All the objects in the receiver.

- pointerAtIndex:

Returns the pointer at a given index.

- addPointer:

Adds a given pointer to the receiver.

- removePointerAtIndex:

Removes the pointer at a given index.

- replacePointerAtIndex:withPointer:

Replaces the pointer at a given index.

- compact

Removes NULL values from the receiver.