title: NSMenuItem enabled state, dynamic naming and target action
body: <p>I am having a problem with my app's menu. I want a few items in the menu to be greyed out depending on some <code>BOOL</code> variables. </p>
  
  <p>Also, I want some of my menu items to get names depending on some <code>BOOL</code> variables and thereby execute different functions depending on what the menu item name is. Is this possible? As using Interface Builder you can link a menu item to one IBAction method. please tell me how to do this.</p>
  
  <p>Thanks</p>