Can anyone suggest how to solve this NSCollectionView issue? Converted from Swift 3 to Swift 4 and magic started happening :)
Code:
let item = NSNib(nibNamed: NSNib.Name(rawValue: "MACollectionViewItem"), bundle: nil)
collectionView.register(item, forItemWithIdentifier: "CollectionViewItem")
Error for the second line:
Cannot invoke '
register' with an argument list of type'(NSNib?, forItemWithIdentifier: String)'