title: (NSMenuItem): missing setter or instance variable
body: <p>I am encountering a strange error:</p>
  
  <pre><code>2015-04-02 12:20:14.642 test[21167:257788] Failed to connect     
  (testApp) outlet from (test.AppDelegate) to (NSMenuItem): missing 
  setter or instance variable
  inserted id: 122
  </code></pre>
  
  <p>I occured when a added a menuItem to a menu and connected a function to it. </p>
  
  <p>I do not know what the Problem is. The app works fine but i don't think it is a smart idea to ignore the error. 
  What is meant by setter or instance variable? Why is it needed?</p>
  
  <p>UPDATE: Here is the relevant code: </p>
  
  <pre><code>import Cocoa
  import Foundation
  
  @NSApplicationMain
  class AppDelegate: NSObject, NSApplicationDelegate {
  
  @IBOutlet weak var window: NSWindow!
  @IBOutlet weak var statusMenu: NSMenu!
  
  let statusItem = NSStatusBar.systemStatusBar().statusItemWithLength(-1)
  
  func applicationDidFinishLaunching(aNotification: NSNotification) {
      let icon = NSImage(named: "statusIcon")
  
      statusItem.image = icon
      statusItem.menu = statusMenu
      // Time for constant repeat
      NSTimer.scheduledTimerWithTimeInterval(1, target: self, selector: "timerRepeat", userInfo: nil, repeats: true)
  }
  
  // Method to call the tracking core
  func timerRepeat() {
      //....
  }
  
  @IBAction func frontEnd(sender: NSMenuItem) {
      var targetURL : String = NSBundle.mainBundle().resourcePath!
      targetURL = targetURL + "/" + "front.app"
      let workspace = NSWorkspace()
      workspace.launchApplication(targetURL)
  }
  
  
  @IBAction func menuClicked(sender: NSMenuItem) {
      NSApplication.sharedApplication().terminate(self)
  }   
  }
  </code></pre>