def stopEventLoop():
stopper = PyObjCAppHelperRunLoopStopper_wrap.currentRunLoopStopper()<EOL>if stopper is None:<EOL><INDENT>if NSApp() is not None:<EOL><INDENT>NSApp().terminate_(None)<EOL>return True<EOL><DEDENT>return False<EOL><DEDENT>NSTimer.scheduledTimerWithTimeInterval_target_selector_userInfo_repeats_(<EOL><NUM_LIT:0.0>,<EOL>stopper,<EOL>'<STR_LIT>',<EOL>None,<EOL>False)<EOL>return True<EOL>
Stop the current event loop if possible
returns True if it expects that it was successful, False otherwise