Instance Method

childIndexForItem:

Returns the child index of the specified item within its parent.

Declaration

- (NSInteger)childIndexForItem:(id)item;

Discussion

The performance of this method is O(1) at best and O(n) at worst.

See Also

Getting Related Items

- parentForItem:

Returns the parent for a given item.

- child:ofItem:

Returns the specified child of an item.

- numberOfChildrenOfItem:

Returns the number of children for the specified parent item.