2

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?

1 Answers1

6

NSTextField has a member called stringValue instead of text.

Try: let email = self.emailTextField.stringValue

Community
  • 1
  • 1
Alexander
  • 59,041
  • 12
  • 98
  • 151