usbdmx.com Home of the opto isolated, bus powered, DMX512 interface with both in and out universes. Cheap and simple to build. USBDMX logo

LOChannelDataSource Class Reference

Simple data source to allow all channels from the LOCHannelManager to be displayed in the a table, and have thier names edited. More...

#import <LOChannelDataSource.h>


Public Member Functions

(int) - numberOfRowsInTableView:
(id) - tableView:objectValueForTableColumn:row:
 Returns the actual data to the table for a given column value.
(void) - tableView:setObjectValue:forTableColumn:row:
 Allows the following fields to be updated :.
(BOOL) - tableView:isRowAdditional:
 Is this row relating to an Additional patched channel.
(unsigned) - tableView:channelAtRow:
 Get the channel number at this given row index.
(LOHWChannelProxy *) - tableView:proxyAtRow:
 Get the channel proxy for the given row index.

Protected Attributes

NSArray * cachedChannelData


Detailed Description

Simple data source to allow all channels from the LOCHannelManager to be displayed in the a table, and have thier names edited.

Curretnly only a basic implementation, no sorting allowed


Member Function Documentation

- (unsigned) tableView: (NSTableView *)  aTableView
channelAtRow: (int)  rowIndex 

Get the channel number at this given row index.

- (BOOL) tableView: (NSTableView *)  aTableView
isRowAdditional: (int)  rowIndex 

Is this row relating to an Additional patched channel.

- (id) tableView: (NSTableView *)  aTableView
objectValueForTableColumn: (NSTableColumn *)  aTableColumn
row: (int)  rowIndex 

Returns the actual data to the table for a given column value.

Provides data for the following column values :

channel (String) The channel number

identifierWithPhysical (String) The physical interface details for the channel

physicalAddress (String) The physical details of the channel including the universe (an alternative to identifierWithPhysical)

HTP (CheckBox) Ticked if the channel is HTP

name (String) The name of the channel

- (LOHWChannelProxy *) tableView: (NSTableView *)  aTableView
proxyAtRow: (int)  rowIndex 

Get the channel proxy for the given row index.

- (void) tableView: (NSTableView *)  aTableView
setObjectValue: (id)  anObject
forTableColumn: (NSTableColumn *)  aTableColumn
row: (int)  rowIndex 

Allows the following fields to be updated :.

HTP

name


The documentation for this class was generated from the following files: