title: How to link code to the GUI with Cocoa-Applescript on Xcode
body: <p>I am trying to link my code to my GUI. But it won't let me. </p>
  
  <p>Currently, I have a label, Button, and a Text Field on my GUI. This is my code for the GUI:</p>
  
  <pre><code>-- IBOutlets
  property window : missing value
  
  on buttonClicked_(sender)
      display alert "Hello there " &amp; (stringValue() of textField)
  end buttonClicked_
  
  on applicationWillFinishLaunching_(aNotification)
      -- Insert code here to initialize your application before any files are opened 
  end applicationWillFinishLaunching_
  
  on applicationShouldTerminate_(sender)
      -- Insert code here to do any housekeeping before your application quits 
      return current application's NSTerminateNow
  end applicationShouldTerminate_ 
  </code></pre>
  
  <p>When I try using the App Delegate tool, It doesn't work. I drag it to the parts on the GUI and it makes a blue line. But, The only thing the shows up under "Outlets" is "Window"</p>
  
  <p>If I run the program, The GUI comes up, but it doesn't do anything cause the code isn't connected!</p>
  
  <p>How do I connect my code to my GUI?</p>
  
  <p>Extra Info: Xcode 5.1</p>