I am creating a Mac application with Xcode, Swift
I got this error (in the title) on this code
let email = self.emailTextField.text
I thought it would be the same as I did on my iOS application.
Do you guys know what the problem is?
I am creating a Mac application with Xcode, Swift
I got this error (in the title) on this code
let email = self.emailTextField.text
I thought it would be the same as I did on my iOS application.
Do you guys know what the problem is?
NSTextField
has a member called stringValue
instead of text
.
Try: let email = self.emailTextField.stringValue