How to set an image into an NSCollectionView?

Viewed 435

Below is my code:

var  arrCategory:[NSString] =
         ["Australia","Austria","Belgium","Brazil","Cameroon","Canada","Chile","China","Denmark","Argentina"]

The strings given in above array are the name of images.

2 Answers

My Question Of Answer i find out and is Here:

cell.imgView.image = NSImage(named:self.arrCategory[indexPath.item])
cell.lbl.stringValue =  arrlbl[indexPath.item] as String
Related