mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 19:00:47 +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
|
@ -1,3 +1,10 @@
|
||||||
|
2011-03-17 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
|
* Source/NSOutlineView.m (-namesOfPromisedFilesDroppedAtDestination:),
|
||||||
|
* Source/NSTableView.m
|
||||||
|
(-namesOfPromisedFilesDroppedAtDestination:): Implement this drag
|
||||||
|
and drop support method.
|
||||||
|
|
||||||
2011-03-16 Fred Kiefer <FredKiefer@gmx.de>
|
2011-03-16 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/NSComboBoxCell.m: Correct imports.
|
* Source/NSComboBoxCell.m: Correct imports.
|
||||||
|
|
|
@ -1445,6 +1445,21 @@ Also returns the child index relative to this parent. */
|
||||||
return YES;
|
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...
|
// Autosave methods...
|
||||||
- (void) setAutosaveName: (NSString *)name
|
- (void) setAutosaveName: (NSString *)name
|
||||||
{
|
{
|
||||||
|
|
|
@ -5348,6 +5348,21 @@ This method is deprecated, use -columnIndexesInRect:. */
|
||||||
return _verticalMotionDrag;
|
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
|
* Encoding/Decoding
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue