From c2ab36a2da8660f654c0c7ffc3fe3c2b4795a982 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Mon, 1 Oct 2018 08:10:13 +0200 Subject: [PATCH] add implicit conversion to NSArray* --- include/wx/osx/core/cfarray.h | 2 ++ 1 file changed, 2 insertions(+) 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); }