# NSIndexPath class documentation

rfm@gnu.org
Generated at 2025-02-13 06:02:40 +0000
2006 Free Software Foundation, Inc.
Software documentation for the NSIndexPath class
Foundation/NSIndexPath.h
NSCopying
NSCoding
Instances of this class represent a series of indexes into a hierarchy of arrays.
Each instance is a unique shared object.
indexPathForItem:
item
inSection:
section
Return a path containing an item number and section.
indexPathForRow:
item
inSection:
section
Return a path containing row number and section.
indexPathWithIndex:
anIndex
Return a path containing the single value anIndex.
indexPathWithIndexes:
indexes
length:
length
Return a path containing all the indexes in the supplied array.
compare:
other
Compares other with the receiver.
Returns NSOrderedSame if the two are identical.
Returns NSOrderedAscending if other is less than the receiver in a depth-wise comparison.
Returns NSOrderedDescending otherwise.
getIndexes:
aBuffer
Copies all index values from the receiver into aBuffer.
indexAtPosition:
position
Return the index at the specified position or NSNotFound if there is no index at the specified position.
indexPathByAddingIndex:
anIndex
Return path formed by adding anIndex to the receiver.
Return path formed by adding the index to the receiver.
indexPathByRemovingLastIndex
Return path formed by removing the last index from the receiver.
initWithIndex:
anIndex
Returns the shared instance containing the specified index, creating it and destroying the receiver if necessary.
initWithIndexes:
indexes
length:
length
Returns the shared instance containing the specified index array, creating it and destroying the receiver if necessary.
Initialise the receiver to contain the specified indexes.
May return an existing index path.
item
Return an index number identifying a row in a table view
length
Returns the number of index values present in the receiver.
section
Return an index number identifying a section in a collection view