It's actually better to use NSApplication.SharedApplication here as your NSObject