examples/cocoa: never instance NSApplication with new

Cocoa expects the you instance NSApplications only through the singleton
method sharedApplication.