title: Execute code in objective-c when enter key is pressed?
body: <p>I'm working on an Objective-C Xcode project in Xcode 6. I have a textfield and a button that checks what's in the textfield when pressed. </p>
  
  <p>However, I would like the code to run when enter key is pressed instead of the submit button.</p>
  
  <p>I have seen that you can set the key equivalent for a button in Xcode however this option doesn't appear to feature in Xcode 6.</p>