prevent more deprecated warnings for yosemite
use typed NSApplication rather than untyped NSApp for accessing Cocoa shared application