NSObject(MOExtendedTableViewDefaultDataSourceMethods)


Abstract

MOKit provides default implementation for one NSTableView dataSource method.

Discussion

MOKit provides default implementation for one NSTableView dataSource method.



Methods

tableView:acceptDrop:row:dropOperation:
Default implementation for NSTableView dataSource method.

tableView:acceptDrop:row:dropOperation:

Default implementation for NSTableView dataSource method.
- ( BOOL ) tableView:
        (NSTableView *) sender acceptDrop:
        (id ) info row:
        (int ) row dropOperation:
        (NSTableViewDropOperation ) op;

Default implementation for NSTableView dataSource method. This method is provided to make the new MOExtendedTableView datSource API -tableView:readRowsFromPasteboard:row:dropOperation:pasteboardSourceType: into the funnel for all pasteboard reading. The implementation of this method simply checks whether the dataSource implements the new method, and if it does, it sends it with [info draggingPasteboard] as the pasteboard. The pasteboardSourceType is either MOPasteboardSourceTypeSelfDrop or MOPasteboardSourceTypeDrop depending on whether [info draggingSource] is the sender.

Parameter Descriptions
sender
The sending MOExtendedTableView.
info
The dragging info object.
row
The row index of where to insert the new rows.
op
The drop operation.
method result
YES if the operation is successful, NO if not.

(Last Updated 3/20/2005)