Select NSCollectionView

I need to create a photo gallery, and each individual photo will be selected for editing. For this, I use NSCollectionView to customize the layout of the grid. I followed this tutorial and the main grid layout is set up.

Now I need to enable the selection of these images. Therefore, when I click on them, it gets a checkmark, and later I need to enable batch processing of these images (copy / delete ...).

I was stuck here and couldn't get information on how to handle the selection and then get the selected items from the grid?

+4
source share

All Articles