X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6e711d5c093dcc758e3f1670caf845612ea9fa92..9c64071583c62026eb8f25638aec9f3843209d4d:/include/wx/listbox.h diff --git a/include/wx/listbox.h b/include/wx/listbox.h index afe6348038..1c8c397b24 100644 --- a/include/wx/listbox.h +++ b/include/wx/listbox.h @@ -16,7 +16,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma interface "listboxbase.h" #endif @@ -45,9 +45,7 @@ class WXDLLEXPORT wxListBoxBase : public wxControlWithItems public: // all generic methods are in wxControlWithItems, except for the following // ones which are not yet implemented by wxChoice/wxCombobox -#ifdef __DARWIN__ - virtual ~wxListBoxBase() { } -#endif + virtual ~wxListBoxBase(); void Insert(const wxString& item, int pos) { DoInsert(item, pos); } @@ -111,8 +109,8 @@ public: protected: // NB: due to wxGTK implementation details, DoInsert() is implemented // using DoInsertItems() and not the other way round - void DoInsert(const wxString& item, int pos) - { InsertItems(1, &item, pos); } + virtual int DoInsert(const wxString& item, int pos) + { InsertItems(1, &item, pos); return pos; } // to be implemented in derived classes virtual void DoInsertItems(const wxArrayString& items, int pos) = 0; @@ -137,8 +135,8 @@ protected: #include "wx/mac/listbox.h" #elif defined(__WXPM__) #include "wx/os2/listbox.h" -#elif defined(__WXSTUBS__) - #include "wx/stubs/listbox.h" +#elif defined(__WXCOCOA__) + #include "wx/cocoa/listbox.h" #endif #endif // wxUSE_LISTBOX