I have looked at the NSCollectionView API and I havnt found anything matching certain tutorials I have seen. Xcode forces me to write my method like this so that there are no errors:
@objc(collectionView:didSelectItemsAtIndexPaths:) func collectionView(_ collectionView: NSCollectionView, didSelectItemsAt indexPaths: Set<IndexPath>) {
print("Selected")
}
Whenever I click on an item in my NSCollectionView nothing happens and my print statement never shows in the console. What is the correct way to select an item from a NSCollectionView?