Implement the drag and drop support method

namesOfPromisedFilesDroppedAtDestination:


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32628 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2011-03-17 10:19:11 +00:00
parent de92c079e6
commit 1a0c431060
3 changed files with 37 additions and 0 deletions

View file

@ -5348,6 +5348,21 @@ This method is deprecated, use -columnIndexesInRect:. */
return _verticalMotionDrag;
}
- (NSArray*) namesOfPromisedFilesDroppedAtDestination: (NSURL *)dropDestination
{
if ([_dataSource respondsToSelector:
@selector(tableView:namesOfPromisedFilesDroppedAtDestination:forDraggedRowsWithIndexes:)])
{
return [_dataSource tableView: self
namesOfPromisedFilesDroppedAtDestination: dropDestination
forDraggedRowsWithIndexes: _selectedRows];
}
else
{
return nil;
}
}
/*
* Encoding/Decoding
*/