cog/Playlist/DNDArrayController.h

23 lines
805 B
C
Raw Normal View History

2005-06-02 18:16:43 +00:00
#import <Cocoa/Cocoa.h>
extern NSString *MovedRowsType;
extern NSString *CogUrlsPboardType;
extern NSString *iTunesDropType;
2005-06-02 18:16:43 +00:00
@interface DNDArrayController : NSArrayController
{
IBOutlet NSTableView *tableView;
}
// table view drag and drop support
2008-02-24 15:47:04 +00:00
- (BOOL)tableView:(NSTableView *)aTableView writeRowsWithIndexes:(NSIndexSet *)rowIndexes toPasteboard:(NSPasteboard *)pboard;
2005-06-02 18:16:43 +00: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
-(void)moveObjectsInArrangedObjectsFromIndexes:(NSIndexSet*)indexSet toIndex:(unsigned int)insertIndex;
2005-06-02 18:16:43 +00:00
@end