+bool wxItemContainerImmutable::SetStringSelection(const wxString& s)
+{
+ const int sel = FindString(s);
+ if ( sel == wxNOT_FOUND )
+ return false;
+
+ SetSelection(sel);
+
+ return true;
+}
+
+wxArrayString wxItemContainerImmutable::GetStrings() const
+{
+ wxArrayString result;
+
+ const unsigned int count = GetCount();
+ result.Alloc(count);
+ for ( unsigned int n = 0; n < count; n++ )
+ result.Add(GetString(n));
+
+ return result;
+}
+
+// ============================================================================
+// wxItemContainer implementation
+// ============================================================================
+
+wxItemContainer::~wxItemContainer()
+{
+ // this destructor is required for Darwin
+}
+
+// ----------------------------------------------------------------------------
+// appending items
+// ----------------------------------------------------------------------------
+
+void wxItemContainer::Append(const wxArrayString& strings)
+{
+ const size_t count = strings.GetCount();
+ for ( size_t n = 0; n < count; n++ )
+ {
+ Append(strings[n]);
+ }
+}
+
+int wxItemContainer::Insert(const wxString& item, unsigned int pos, void *clientData)
+{
+ int n = DoInsert(item, pos);
+ if ( n != wxNOT_FOUND )
+ SetClientData(n, clientData);
+
+ return n;
+}
+
+int wxItemContainer::Insert(const wxString& item, unsigned int pos, wxClientData *clientData)
+{
+ int n = DoInsert(item, pos);
+ if ( n != wxNOT_FOUND )
+ SetClientObject(n, clientData);
+
+ return n;
+}
+