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

@ -1445,6 +1445,21 @@ Also returns the child index relative to this parent. */
return YES;
}
- (NSArray*) namesOfPromisedFilesDroppedAtDestination: (NSURL *)dropDestination
{
if ([_dataSource respondsToSelector:
@selector(outlineView:namesOfPromisedFilesDroppedAtDestination:forDraggedRowsWithIndexes:)])
{
return [_dataSource outlineView: self
namesOfPromisedFilesDroppedAtDestination: dropDestination
forDraggedRowsWithIndexes: _selectedRows];
}
else
{
return nil;
}
}
// Autosave methods...
- (void) setAutosaveName: (NSString *)name
{