For some reason, when you set the title of a menu item with bindings, the menu item becomes enabled even if the target / action is nil .
If you want to permanently disable the menu item, you can get around this by associating the enabled menu item with the constant NO :
NSNumber *alwaysNo = [NSNumber numberWithBool:NO]; [menuItem bind:@"enabled" toObject:alwaysNo withKeyPath:@"boolValue" options:nil];
Please note that this is not the most elegant workaround, but in my case it was even cleaner than not using bindings for the header.
Philipp
source share