NSTableDataSource.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. ///////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/cocoa/NSTableDataSource.h
  3. // Purpose: wxCocoaNSTableDataSource Objective-C class
  4. // Author: David Elliott
  5. // Modified by:
  6. // Created: 2003/08/05
  7. // Copyright: (c) 2003 David Elliott
  8. // Licence: wxWindows licence
  9. ///////////////////////////////////////////////////////////////////////////////
  10. #ifndef __WX_COCOA_NSTABLEDATASOURCE_H__
  11. #define __WX_COCOA_NSTABLEDATASOURCE_H__
  12. #include "wx/cocoa/objc/objc_uniquifying.h"
  13. #import <Foundation/NSObject.h>
  14. // ============================================================================
  15. // @class wxCocoaNSTableDataSource
  16. // ============================================================================
  17. @interface wxCocoaNSTableDataSource : NSObject
  18. {
  19. }
  20. // NSTableDataSource is a loosely defined protocol consisting of the
  21. // following two message implementations
  22. - (int)numberOfRowsInTableView: (NSTableView *)tableView;
  23. - (id)tableView:(NSTableView *)tableView
  24. objectValueForTableColumn: (NSTableColumn *)tableColumn
  25. row: (int)rowIndex;
  26. @end // wxCocoaNSTableDataSource
  27. WX_DECLARE_GET_OBJC_CLASS(wxCocoaNSTableDataSource,NSObject)
  28. #endif // _WX_COCOA_NSTABLEDATASOURCE_H_