X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a236aa2058ccf3d36e9cafc20fa7375080c4be50..9feb6482069c6cdc91086c435002c38ef11e92d2:/include/wx/cocoa/listbox.h diff --git a/include/wx/cocoa/listbox.h b/include/wx/cocoa/listbox.h index e21a39c3e1..91cf621212 100644 --- a/include/wx/cocoa/listbox.h +++ b/include/wx/cocoa/listbox.h @@ -19,7 +19,7 @@ // ======================================================================== // wxListBox // ======================================================================== -class WXDLLEXPORT wxListBox: public wxListBoxBase, protected wxCocoaNSTableView +class WXDLLIMPEXP_CORE wxListBox: public wxListBoxBase, protected wxCocoaNSTableView { DECLARE_DYNAMIC_CLASS(wxListBox) DECLARE_EVENT_TABLE() @@ -76,10 +76,15 @@ protected: WX_NSMutableArray m_cocoaItems; wxArrayPtrVoid m_itemClientData; struct objc_object *m_cocoaDataSource; + bool m_needsUpdate; + inline bool _WxCocoa_GetNeedsUpdate(); + inline void _WxCocoa_SetNeedsUpdate(bool needsUpdate); + virtual void OnInternalIdle(); // ------------------------------------------------------------------------ // Implementation // ------------------------------------------------------------------------ public: + virtual wxSize DoGetBestSize() const; // pure virtuals from wxListBoxBase virtual bool IsSelected(int n) const; virtual int GetSelections(wxArrayInt& aSelections) const;