add implicit conversion to NSArray*

This commit is contained in:
Stefan Csomor 2018-10-01 08:10:13 +02:00
parent ef48d7f184
commit c2ab36a2da

View File

@ -53,6 +53,8 @@ public:
return wxCFRefFromGet((E)CFArrayGetValueAtIndex(this->m_ptr, idx));
}
operator WX_NSArray() { return (WX_NSArray) this->get(); }
wxCFRef<E> operator[](size_type idx) { return at(idx); }
wxCFRef<E> front() { return at(0); }
wxCFRef<E> back() { return at(size() - 1); }