Platforms to show: All Mac Windows Linux Cross-Platform
NSIndexPathMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Cocoa Collection View | MBS MacControls Plugin | 21.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Each index in an index path represents the index into an array of children from one node in the tree to another, deeper, node.
- 3 properties
- 8 methods
- method compare(other as NSIndexPathMBS) as Integer
- method Constructor(Index as Integer)
- method Constructor(Indexes() as Integer)
- method copy as NSIndexPathMBS
- method indexAtPosition(position as Integer) as Integer
- method indexes as Integer()
- method indexPathByAddingIndex(index as Integer) as NSIndexPathMBS
- method indexPathByRemovingLastIndex as NSIndexPathMBS
- 3 shared methods
- shared method indexPathForItem(item as Integer, section as Integer = 0) as NSIndexPathMBS
- shared method indexPathWithIndex(index as Integer) as NSIndexPathMBS
- shared method indexPathWithIndexes(indexes() as Integer) as NSIndexPathMBS
This class has no sub classes.
Some methods using this class:
- NSCollectionViewLayoutAttributesMBS.layoutAttributesForItem(indexPath as NSIndexPathMBS) as NSCollectionViewLayoutAttributesMBS
- NSCollectionViewLayoutAttributesMBS.layoutAttributesForSupplementaryView(elementKind as String, indexPath as NSIndexPathMBS) as NSCollectionViewLayoutAttributesMBS
- NSCollectionViewLayoutInvalidationContextMBS.invalidateItemsAtIndexPaths(indexPaths() as NSIndexPathMBS)
- NSCollectionViewMBS.indexPathForItem(indexPath as NSCollectionViewItemMBS) as NSIndexPathMBS
- NSCollectionViewMBS.indexPathsForVisibleSupplementaryElementsOfKind(elementKind as String) as NSIndexPathMBS()
- NSCollectionViewMBS.layoutAttributesForSupplementaryElementOfKind(kind as String, indexPath as NSIndexPathMBS) as NSCollectionViewLayoutAttributesMBS
- NSCollectionViewMBS.makeItem(indexPath as NSIndexPathMBS) as NSCollectionViewItemMBS
- NSCollectionViewMBS.makeSupplementaryViewOfKind(elementKind as String, indexPath as NSIndexPathMBS) as NSCollectionViewSectionHeaderViewMBS
- NSCollectionViewMBS.selectItems(indexPaths() as NSIndexPathMBS, scrollPosition as Integer)
- NSCollectionViewMBS.supplementaryViewForElementKind(elementKind as String, indexPath as NSIndexPathMBS) as NSCollectionViewSectionHeaderViewMBS
Some properties using for this class:
- NSCollectionViewLayoutAttributesMBS.indexPath as NSIndexPathMBS
- NSCollectionViewUpdateItemMBS.indexPathAfterUpdate as NSIndexPathMBS
- NSCollectionViewUpdateItemMBS.indexPathBeforeUpdate as NSIndexPathMBS
Some events using this class:
- DesktopNSCollectionViewControlMBS.cancelPrefetchingForItems(indexPaths() as NSIndexPathMBS)
- DesktopNSCollectionViewControlMBS.didSelectItems(indexPaths() as NSIndexPathMBS)
- DesktopNSCollectionViewControlMBS.prefetchItems(indexPaths() as NSIndexPathMBS)
- DesktopNSCollectionViewControlMBS.willDisplaySupplementaryView(view as NSViewMBS, elementKind as String, indexPath as NSIndexPathMBS)
- DesktopNSCollectionViewControlMBS.writeItems(indexPaths() as NSIndexPathMBS, Pasteboard as NSPasteboardMBS) as Boolean
- NSCollectionViewControlMBS.acceptDrop(draggingInfo as NSDraggingInfoMBS, indexPath as NSIndexPathMBS, dropOperation as Integer) as Integer
- NSCollectionViewControlMBS.didEndDisplayingItem(item as NSCollectionViewItemMBS, indexPath as NSIndexPathMBS)
- NSCollectionViewControlMBS.namesOfPromisedFilesDroppedAtDestination(dropURL as String, indexPaths() as NSIndexPathMBS) as String()
- NSCollectionViewControlMBS.shouldChangeItems(indexPaths() as NSIndexPathMBS, highlightState as Integer) as NSIndexPathMBS()
- NSCollectionViewControlMBS.writeItems(indexPaths() as NSIndexPathMBS, Pasteboard as NSPasteboardMBS) as Boolean
Some examples using this class:
Blog Entries
Release notes
- Version 24.0
- Fixed crash in NSIndexPathMBS when passing nil array to Constructor or indexPathWithIndexes method.
The items on this page are in the following plugins: MBS MacControls Plugin.
NSImageViewMBS - NSIndexSetMBS