2003-08-17 22:12:42 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/cocoa/NSTableDataSource.h
|
|
|
|
// Purpose: wxCocoaNSTableDataSource Objective-C class
|
|
|
|
// Author: David Elliott
|
|
|
|
// Modified by:
|
|
|
|
// Created: 2003/08/05
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) 2003 David Elliott
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
2003-08-17 22:12:42 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __WX_COCOA_NSTABLEDATASOURCE_H__
|
|
|
|
#define __WX_COCOA_NSTABLEDATASOURCE_H__
|
|
|
|
|
2007-08-15 12:10:19 -04:00
|
|
|
#include "wx/cocoa/objc/objc_uniquifying.h"
|
|
|
|
|
2003-08-17 22:12:42 -04:00
|
|
|
#import <Foundation/NSObject.h>
|
|
|
|
|
|
|
|
// ============================================================================
|
|
|
|
// @class wxCocoaNSTableDataSource
|
|
|
|
// ============================================================================
|
|
|
|
@interface wxCocoaNSTableDataSource : NSObject
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
// NSTableDataSource is a loosely defined protocol consisting of the
|
|
|
|
// following two message implementations
|
|
|
|
- (int)numberOfRowsInTableView: (NSTableView *)tableView;
|
|
|
|
- (id)tableView:(NSTableView *)tableView
|
|
|
|
objectValueForTableColumn: (NSTableColumn *)tableColumn
|
|
|
|
row: (int)rowIndex;
|
|
|
|
@end // wxCocoaNSTableDataSource
|
2007-08-15 12:10:19 -04:00
|
|
|
WX_DECLARE_GET_OBJC_CLASS(wxCocoaNSTableDataSource,NSObject)
|
2003-08-17 22:12:42 -04:00
|
|
|
|
|
|
|
#endif // _WX_COCOA_NSTABLEDATASOURCE_H_
|