2005-06-02 14:16:43 -04:00
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
2021-01-27 19:09:09 -03:00
|
|
|
extern NSString *CogPlaylistItemType;
|
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
|
|
|
|
2021-01-27 19:09:09 -03:00
|
|
|
@interface DNDArrayController : NSArrayController <NSTableViewDataSource>
|
|
|
|
|
|
|
|
@property IBOutlet NSTableView *tableView;
|
2005-06-02 14:16:43 -04:00
|
|
|
|
|
|
|
// table view drag and drop support
|
2021-01-27 19:09:09 -03:00
|
|
|
- (id <NSPasteboardWriting>)tableView:(NSTableView *)tableView
|
|
|
|
pasteboardWriterForRow:(NSInteger)row;
|
|
|
|
- (NSDragOperation)tableView:(NSTableView *)tableView
|
|
|
|
validateDrop:(id <NSDraggingInfo>)info
|
|
|
|
proposedRow:(int)row
|
|
|
|
proposedDropOperation:(NSTableViewDropOperation)dropOperation;
|
|
|
|
- (BOOL)tableView:(NSTableView *)tableView
|
|
|
|
acceptDrop:(id <NSDraggingInfo>)info
|
|
|
|
row:(int)row
|
|
|
|
dropOperation:(NSTableViewDropOperation)dropOperation;
|
2005-06-02 14:16:43 -04:00
|
|
|
|
|
|
|
// utility methods
|
2021-01-27 19:09:09 -03:00
|
|
|
-(void)moveObjectsInArrangedObjectsFromIndexes:(NSIndexSet *)indexSet
|
|
|
|
toIndex:(unsigned int)insertIndex;
|
2008-02-10 16:35:58 -03:00
|
|
|
|
2005-06-02 14:16:43 -04:00
|
|
|
@end
|