Instance Method


Copies the indexes stored in the index path from the positions specified by the position range into the specified indexes.


func getIndexes(_ indexes: UnsafeMutablePointer<Int>, range positionRange: NSRange)



Pointer to a C array of at least as many NSUInteger objects as specified by the length of positionRange. On return, the array holds the index path's indexes.


A range of valid positions within the index path. If the location plus the length of positionRange is greater than the length of the index path, this method raises an rangeException.


You must allocate the memory for the C array.

See Also

Working with Indexes

func index(atPosition: Int) -> Int

Provides the value at a particular node in the index path.

func getIndexes(UnsafeMutablePointer<Int>)

Copies the objects contained in the index path into indexes.


Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software