Contents

NSIndexPath

A list of indexes that together represent the path to a specific location in a tree of nested arrays.

Declaration

class NSIndexPath

Overview

In Swift, this object bridges to IndexPath; use NSIndexPath when you need reference semantics or other Foundation-specific behavior.

Each index in an index path represents the index into an array of children from one node in the tree to another, deeper, node. For example, the index path 1.4.3.2 specifies the path shown in Figure 1.

[Image]

Topics

Creating and Initializing Index Paths

Using Special Node Names

Counting Nodes

Adding and Removing Nodes

Comparing Index Paths

Working with Indexes

Initializers