cast NSApp.