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

LOUniversesDataSource Class Reference

Simple data source to allow all universes to be displayed in a table, or an outline view. More...

#import <LOUniversesDataSource.h>


Public Member Functions

(int) - numberOfRowsInTableView:
(id) - tableView:objectValueForTableColumn:row:
 Returns the actual data to the table for a given column value.

Protected Attributes

LOHWManagerhwManager
NSMutableArray * rootItems


Detailed Description

Simple data source to allow all universes to be displayed in a table, or an outline view.

If you want to enable drag and drop re-ordering of universe you need call the registerForDraggedTypes method on the NSTableView and pass in an array contining LOUniverseDataType.

  [tableView registerForDraggedTypes:[NSArray arrayWithObject:LOUniverseDataType]];

Can also be set as the delegate for the table source. If you don't do this, you should make sure the delegate does not allow editing

Curretnly only a basic implementation, no sorting allowed


Member Function Documentation

- (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 :

universe (String) The universe number

identifier (String) The identifier of the HW Bridge details for this universe

freeChannels (String) The number of free channels on the interface

patchedChannels (String) The number of pacthed channels on the interface


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