Mac アプリでメニュの実装をする場合、一番簡単なのは AppDelegate に書いてしまうこと。
https://qiita.com/imk2o/items/436839153530dbcb7ed1
やり方は上記記事を参考にしてほしい。
デフォルトメニューの First Responder の担当オブジェクトは AppDelegate になっているのだから、First Responder に testaction という responder を登録し、AppDelegate に以下の実装をしておけば、実行してくれる。
- (IBAction)testaction:(id)sender
{
NSLog(@"test action");
}
AppDelegate.m
図がわかりやすい。