Added NSMenu's setdelegate method to it's constructor.