]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/listbox.mm
mention ShouldInheritColours() change
[wxWidgets.git] / src / cocoa / listbox.mm
index 4d4cd0bf43e5066ad02f1e0d702be94a5e25019d..5e9239d031377aa48a61f6ac6d56a1f447dd45d6 100644 (file)
@@ -9,9 +9,12 @@
 // Licence:    wxWindows license
 /////////////////////////////////////////////////////////////////////////////
 
-#include "wx/app.h"
-#include "wx/listbox.h"
-#include "wx/log.h"
+#include "wx/wxprec.h"
+#ifndef WX_PRECOMP
+    #include "wx/log.h"
+    #include "wx/app.h"
+    #include "wx/listbox.h"
+#endif //WX_PRECOMP
 
 #include "wx/cocoa/string.h"
 #include "wx/cocoa/NSTableDataSource.h"
@@ -78,7 +81,7 @@ wxListBox::~wxListBox()
     [GetNSTableView() setDataSource: nil];
     [m_cocoaDataSource release];
     [m_cocoaItems release];
-    DisassociateNSTableView(m_cocoaNSView);
+    DisassociateNSTableView(GetNSTableView());
 }
 
 int wxListBox::CocoaDataSource_numberOfRows()