# include "wx/msw/chkconf.h"
#elif defined(__WXGTK__)
# include "wx/gtk/chkconf.h"
+#elif defined(__WXCOCOA__)
+# include "wx/cocoa/chkconf.h"
#elif defined(__WXMAC__)
# include "wx/osx/chkconf.h"
#elif defined(__OS2__)
--- /dev/null
+/*
+ * Name: wx/cocoa/chkconf.h
+ * Purpose: wxCocoa-specific config settings checks
+ * Author: Vadim Zeitlin
+ * Created: 2008-09-11
+ * RCS-ID: $Id$
+ * Copyright: (c) 2008 Vadim Zeitlin <vadim@wxwidgets.org>
+ * Licence: wxWindows licence
+ */
+
+/* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */
+
+#ifndef _WX_COCOA_CHKCONF_H_
+#define _WX_COCOA_CHKCONF_H_
+
+/*
+ wxLogDialog doesn't currently work correctly in wxCocoa.
+ */
+#undef wxUSE_LOG_DIALOG
+#define wxUSE_LOG_DIALOG 0
+
+#endif // _WX_COCOA_CHKCONF_H_
wxLog *wxGUIAppTraitsBase::CreateLogTarget()
{
-// DE: One day I'll remove this but right now the generic dialog used for this
-// just doesn't work right at all on wxCocoa.
-#if wxUSE_LOGGUI && !defined(__WXCOCOA__)
+#if wxUSE_LOGGUI
return new wxLogGui;
#else
// we must have something!