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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 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.