From 7bb70733bbb9941347ad349e3477c4da17b03381 Mon Sep 17 00:00:00 2001
From: David Elliott <dfe@tgwbd.org>
Date: Thu, 29 Jan 2004 06:21:59 +0000
Subject: [PATCH] wxCocoa: Don't use listbox for logging until it's more fully
 implemented.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 samples/widgets/widgets.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/samples/widgets/widgets.cpp b/samples/widgets/widgets.cpp
index 89836f02ec..6f51626845 100644
--- a/samples/widgets/widgets.cpp
+++ b/samples/widgets/widgets.cpp
@@ -282,10 +282,13 @@ WidgetsFrame::WidgetsFrame(const wxString& title)
     sizerTop->Fit(this);
     sizerTop->SetSizeHints(this);
 
+    // wxCocoa's listbox is too flakey to use for logging right now
+    #if !defined(__WXCOCOA__)
     // now that everything is created we can redirect the log messages to the
     // listbox
     m_logTarget = new LboxLogger(m_lboxLog, wxLog::GetActiveTarget());
     wxLog::SetActiveTarget(m_logTarget);
+    #endif
 }
 
 void WidgetsFrame::InitNotebook()
-- 
2.49.0