var textField: NSTextField = tableView.makeViewWithIdentifier("TextField", owner: self)
gives the following error:
Cannot convert value of type 'NSView?' to specified type 'NSTextField'
while in Objective-C, the following call works and doesn't cause any errors in Xcode 7+.
What should I do?
Also, I have the following line of code:
if (textField == nil) {
gives the following error:
Value of type 'NSTextField' can never be nil, comparison isn't allowed.
while Objective-C, the following statement works and doesn't cause any errors in Xcode 7+.
What should I do?