Fix for NSApplication delegate behavior in 10.10.