class wxListWidgetCocoaImpl;
-@interface wxNSTableDataSource : NSObject
-#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6
- <NSTableViewDataSource>
-#endif
+@interface wxNSTableDataSource : NSObject wxOSX_10_6_AND_LATER(<NSTableViewDataSource>)
{
wxListWidgetCocoaImpl* impl;
}
@end
-@interface wxNSTableView : NSTableView
-#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6
- <NSTableViewDelegate>
-#endif
+@interface wxNSTableView : NSTableView wxOSX_10_6_AND_LATER(<NSTableViewDelegate>)
{
}
virtual void UpdateLineToEnd( unsigned int n);
virtual void controlDoubleAction(WXWidget slf, void* _cmd, void *sender);
- virtual bool DoHandleKeyEvent(NSEvent *event);
protected :
wxNSTableView* m_tableView ;
list->HandleLineEvent( sel, true );
}
-bool wxWidgetCocoaImpl::DoHandleKeyEvent(NSEvent *event)
-{
- wxKeyEvent wxevent(wxEVT_KEY_DOWN);
- SetupKeyEvent( wxevent, event );
- wxevent.SetEventObject(GetWXPeer());
- bool result = GetWXPeer()->OSXHandleKeyEvent(wxevent);
-
- // no interpretKeyEvents here, but rerouting to native keyhandling
-
- return result;
-}
-
// accessing content