Skip navigation.
 
mlRe: Drag and drop single cell in a table/matrix
FROM : Corbin Dunn
DATE : Thu Feb 28 23:19:54 2008

Override:

- (NSImage *)dragImageForRowsWithIndexes:(NSIndexSet *)dragRows 
tableColumns:(NSArray *)tableColumns event:(NSEvent*)dragEvent offset:
(NSPointPointer)dragImageOffset

limit the columns passed based on the column at the event's location. 
The rest is up to your delegate/datasource methods.

corbin

On Feb 28, 2008, at 2:14 PM, Dan Waltin wrote:
> Hi all,
>
> The short question is: how do I drag'n'drop single cells in an 
> NSTableView (or NSOutlineView). I.e. I don't want the entire row to 
> be dragged, just one cell.

Related mailsAuthorDate
mlDrag and drop single cell in a table/matrix Dan Waltin Feb 28, 23:14
mlRe: Drag and drop single cell in a table/matrix Corbin Dunn Feb 28, 23:19