]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/carbon/menu.cpp
Don't use deprecated NSTableView selectRow:byExtendingSelection: method.
[wxWidgets.git] / src / osx / carbon / menu.cpp
index 3b258bba5cab7ff9768c30f35011f6fbe9d6378b..ab442f635f1942347dc73a00fa1cb2ca7791c8a1 100644 (file)
@@ -151,7 +151,7 @@ public :
     {
         m_parentMenuRef = parentMenuRef;
         if ( m_parentMenuRef && index > 0 )
-            SetMenuItemRefCon( m_parentMenuRef, index, (URefCon) this );
+            SetMenuItemRefCon( m_parentMenuRef, index, (URefCon) m_peer );
     }
 
     MenuItemIndex FindMenuItemIndex()
@@ -163,7 +163,7 @@ public :
             {
                 URefCon storedRef = 0;
                 GetMenuItemRefCon(m_parentMenuRef, i, &storedRef );
-                if ( storedRef == (URefCon) this )
+                if ( storedRef == (URefCon) m_peer )
                 {
                     hit = i;
                     break;