mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:10:38 +00:00
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:
parent
de92c079e6
commit
1a0c431060
3 changed files with 37 additions and 0 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue