If you use the Ohanaware App Kit, this is set for you when you call OAK2020.init( true )
.
Otherwise if you use one of the other application kits, you should be able to translate the following line.
NSUserDefaultsSetBoolForKey( NSUserDefaultsStandard, true, "NSApplicationCrashOnExceptions" )