Add EndDialog helper which calls EndModal with the given return code if the
authorDavid Elliott <dfe@tgwbd.org>
Mon, 26 Sep 2005 15:42:42 +0000 (15:42 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Mon, 26 Sep 2005 15:42:42 +0000 (15:42 +0000)
commitacb96ac277797a4b40d05264f088ee0693382f4b
treeaed19809ed0bdba2f6dabc6ecfbc8f34148e60c9
parent38d4b1e4bc01ea5c58ee8e22c924408d94aa2e9e
Add EndDialog helper which calls EndModal with the given return code if the
dialog is modal, and Show(false) if the dialog is not modal.  This allows
the default handlers for OK and Cancel to function without assertions.
This code is copied more or less directly from src/msw/dialog.cpp.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35730 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/cocoa/dialog.h
src/cocoa/dialog.mm