I think you need an extra  colon for`::NSApplication`.