2005-06-02 14:16:43 -04:00
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
|
|
extern NSString *MovedRowsType;
|
2008-02-13 14:14:19 -03:00
|
|
|
extern NSString *CogUrlsPboardType;
|
2007-02-17 12:58:39 -03:00
|
|
|
extern NSString *iTunesDropType;
|
2005-06-02 14:16:43 -04:00
|
|
|
|
|
|
|
@interface DNDArrayController : NSArrayController
|
|
|
|
{
|
|
|
|
IBOutlet NSTableView *tableView;
|
|
|
|
}
|
|
|
|
|
|
|
|
// table view drag and drop support
|
2008-02-24 12:47:04 -03:00
|
|
|
- (BOOL)tableView:(NSTableView *)aTableView writeRowsWithIndexes:(NSIndexSet *)rowIndexes toPasteboard:(NSPasteboard *)pboard;
|
2005-06-02 14:16:43 -04:00
|
|
|
- (NSDragOperation)tableView:(NSTableView*)tv validateDrop:(id <NSDraggingInfo>)info proposedRow:(int)row proposedDropOperation:(NSTableViewDropOperation)op;
|
|
|
|
- (BOOL)tableView:(NSTableView*)tv acceptDrop:(id <NSDraggingInfo>)info row:(int)row dropOperation:(NSTableViewDropOperation)op;
|
|
|
|
|
|
|
|
|
|
|
|
// utility methods
|
2008-02-10 16:35:58 -03:00
|
|
|
-(void)moveObjectsInArrangedObjectsFromIndexes:(NSIndexSet*)indexSet toIndex:(unsigned int)insertIndex;
|
|
|
|
|
2005-06-02 14:16:43 -04:00
|
|
|
@end
|