X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4a3dcf1de1e03170b9b63a3649e137ac4922edea..bfdc04a9bb95e6865570d59192718052b6229221:/src/cocoa/listbox.mm diff --git a/src/cocoa/listbox.mm b/src/cocoa/listbox.mm index 4d4cd0bf43..5e9239d031 100644 --- a/src/cocoa/listbox.mm +++ b/src/cocoa/listbox.mm @@ -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()