]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/cocoa/notebook.mm
Add wxTimer::StartOnce().
[wxWidgets.git] / src / osx / cocoa / notebook.mm
index c314bc6389e4ec0eeafccc4801a944ea9770fa9d..86820dc0eaf4c8effe7c36aacab8b09205e06d27 100644 (file)
@@ -260,6 +260,28 @@ public:
             }
         }
     }
             }
         }
     }
+
+    int TabHitTest(const wxPoint & pt, long* flags)
+    {
+        int retval = wxNOT_FOUND;
+        
+        NSPoint nspt = wxToNSPoint( m_osxView, pt );
+        
+        wxNSTabView* slf = (wxNSTabView*) m_osxView;
+        
+        NSTabViewItem* hitItem = [slf tabViewItemAtPoint:nspt];
+        
+        if (!hitItem) {
+            if ( flags )
+                *flags = wxBK_HITTEST_NOWHERE;
+        } else {
+            retval = [slf indexOfTabViewItem:hitItem];
+            if ( flags )
+                *flags = wxBK_HITTEST_ONLABEL;
+        }
+        
+        return retval; 
+    }
 };
 
 
 };