X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e9e4acc5197ac49259b9a39468c5931b4459d87f..ef094fa075bc56bcbc33b12159c395ea28afda3b:/include/wx/listbox.h?ds=sidebyside diff --git a/include/wx/listbox.h b/include/wx/listbox.h index d06528cd45..1c8c397b24 100644 --- a/include/wx/listbox.h +++ b/include/wx/listbox.h @@ -109,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; @@ -135,6 +135,8 @@ protected: #include "wx/mac/listbox.h" #elif defined(__WXPM__) #include "wx/os2/listbox.h" +#elif defined(__WXCOCOA__) + #include "wx/cocoa/listbox.h" #endif #endif // wxUSE_LISTBOX