I need to convert a nsindexpath var into NsInteger or simply an int. e.g:
int rowIndex = [mGoogleBaseTable selectedRow]; //mGoogleBaseTable is a NSTable type
In swift :
Associate your collection view to your var :
@IBOutlet weak var collectionView: UICollectionView!
In prepareForSegue func, you can call :
prepareForSegue
var indexPath = collectionView.indexPathsForSelectedItems()