]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/carbon/listctrl_mac.cpp
going private for m_peer to give a foundation for better encapsulation
[wxWidgets.git] / src / osx / carbon / listctrl_mac.cpp
index 898890d2ffb11ef604b70aaa93f5562fa7fa86f6..c9a1fab233b9be768fcb15341d6ff96593568fbe 100644 (file)
@@ -678,11 +678,11 @@ bool wxListCtrl::Create(wxWindow *parent,
         if ( !wxWindow::Create(parent, id, pos, size, style & ~(wxHSCROLL | wxVSCROLL), name) )
             return false;
         m_dbImpl = new wxMacDataBrowserListCtrlControl( this, pos, size, style );
-        m_peer = m_dbImpl;
+        SetPeer(m_dbImpl);
 
         MacPostControlCreate( pos, size );
 
-        InstallControlEventHandler( m_peer->GetControlRef() , GetwxMacListCtrlEventHandlerUPP(),
+        InstallControlEventHandler( GetPeer()->GetControlRef() , GetwxMacListCtrlEventHandlerUPP(),
             GetEventTypeCount(eventList), eventList, this,
             (EventHandlerRef *)&m_macListCtrlEventHandler);