Fix for NSApplication delegate behavior in 10.10.
Merge pull request #185 from lindegroup/nsapp-delegate-yosemite-fix

Fix for NSApplication delegate behavior in 10.10.