Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSIndexPathMBS class.

NSIndexPathMBS.compare(other as NSIndexPathMBS) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Collection View MBS MacControls Plugin 21.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Indicates the depth-first traversal order of the receiving index path and another index path.

Returns the depth-first traversal ordering of the receiving index path and indexPath.

NSOrderedAscending = -1: The receiving index path comes before indexPath.
NSOrderedDescending = 1: The receiving index path comes after indexPath.
NSOrderedSame = 0: The receiving index path and indexPath are the same index path.

NSIndexPathMBS.Constructor(Index as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Collection View MBS MacControls Plugin 21.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Initializes an index path with a single node.

Returns an initialized NSIndexPath object representing a one-node index path with index.

See also:

NSIndexPathMBS.Constructor(Indexes() as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Collection View MBS MacControls Plugin 21.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Initializes an index path with the given nodes and length.

indexes: Array of indexes to make up the index path.

See also:

NSIndexPathMBS.copy as NSIndexPathMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Collection View MBS MacControls Plugin 21.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Creates a copy of the object.

NSIndexPathMBS.indexAtPosition(position as Integer) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Collection View MBS MacControls Plugin 21.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Provides the value at a particular node in the index path.

position: Index value of the desired node. Node numbering starts at zero.

Returns the index value at node or NSNotFound (-1) if the node is outside the range of the index path.

NSIndexPathMBS.indexes as Integer()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Collection View MBS MacControls Plugin 21.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Queries indexes.

NSIndexPathMBS.indexPathByAddingIndex(index as Integer) as NSIndexPathMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Collection View MBS MacControls Plugin 21.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns an index path containing the nodes in the receiving index path plus another given index.

index: Index to append to the index path’s indexes.

Returns a new index path containing the receiving index path’s indexes and index.

NSIndexPathMBS.indexPathByRemovingLastIndex as NSIndexPathMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Collection View MBS MacControls Plugin 21.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns an index path with the nodes in the receiving index path, excluding the last one.

Returns an empty NSIndexPath instance if the receiving index path’s length is 1 or less.

In OS X v10.4 this method returns nil when the length of the receiving index path is 1 or less. On iOS and macOS 10.5 and later this method never returns nil.

The items on this page are in the following plugins: MBS MacControls Plugin.


The biggest plugin in space...