I would like to en-/disable a Menu-Object
programmatically in Swift. I found something one the Apple Developer Library
: https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSMenuItem_Class/#//apple_ref/occ/instp/NSMenuItem/enabled
But how to get a reference to the Menu-Object
with the code and set its state programmatically?
validateMenuItem: