diff --git a/include/wx/osx/core/cfarray.h b/include/wx/osx/core/cfarray.h index 1b58597bf0..2a5e215904 100644 --- a/include/wx/osx/core/cfarray.h +++ b/include/wx/osx/core/cfarray.h @@ -53,6 +53,8 @@ public: return wxCFRefFromGet((E)CFArrayGetValueAtIndex(this->m_ptr, idx)); } + operator WX_NSArray() { return (WX_NSArray) this->get(); } + wxCFRef operator[](size_type idx) { return at(idx); } wxCFRef front() { return at(0); } wxCFRef back() { return at(size() - 1); }