]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/combobox.mm
Line-up interfaces to use size_t for GetCount()s (and count related api).
[wxWidgets.git] / src / cocoa / combobox.mm
index 0e19e3d340ff9752fb0fb29aaf07e1f4c3c71bb9..9be77501acda5c54c921d86df919f19e0dc93162 100644 (file)
@@ -75,6 +75,7 @@
 // ----------------------------------------------------------------------------
 
 #include "wx/wxprec.h"
+
 #if wxUSE_COMBOBOX
 
 #ifndef WX_PRECOMP
@@ -260,9 +261,9 @@ void wxComboBox::Delete(int nIndex)
     m_Datas.RemoveAt(nIndex);
 }
 
-int wxComboBox::GetCount() const
+size_t wxComboBox::GetCount() const
 {
-    return [GetNSComboBox() numberOfItems];
+    return (size_t)[GetNSComboBox() numberOfItems];
 }
 
 wxString wxComboBox::GetString(int nIndex) const