cog/Playlist/DNDArrayController.h

33 lines
1.1 KiB
C
Raw Normal View History

2005-06-02 18:16:43 +00:00
#import <Cocoa/Cocoa.h>
extern NSString *CogDNDIndexType;
extern NSString *CogUrlsPboardType;
extern NSString *iTunesDropType;
2005-06-02 18:16:43 +00:00
2021-01-27 22:09:09 +00:00
@interface DNDArrayController : NSArrayController <NSTableViewDataSource>
@property IBOutlet NSTableView *tableView;
2005-06-02 18:16:43 +00:00
// table view drag and drop support
2021-01-27 22:09:09 +00:00
- (id <NSPasteboardWriting>)tableView:(NSTableView *)tableView
pasteboardWriterForRow:(NSInteger)row;
- (void)tableView:(NSTableView *)tableView
draggingSession:(NSDraggingSession *)session
willBeginAtPoint:(NSPoint)screenPoint
forRowIndexes:(NSIndexSet *)rowIndexes;
2021-01-27 22:09:09 +00:00
- (NSDragOperation)tableView:(NSTableView *)tableView
validateDrop:(id <NSDraggingInfo>)info
proposedRow:(NSInteger)row
2021-01-27 22:09:09 +00:00
proposedDropOperation:(NSTableViewDropOperation)dropOperation;
- (BOOL)tableView:(NSTableView *)tableView
acceptDrop:(id <NSDraggingInfo>)info
row:(NSInteger)row
2021-01-27 22:09:09 +00:00
dropOperation:(NSTableViewDropOperation)dropOperation;
2005-06-02 18:16:43 +00:00
// utility methods
2021-01-27 22:09:09 +00:00
-(void)moveObjectsInArrangedObjectsFromIndexes:(NSIndexSet *)indexSet
toIndex:(NSUInteger)insertIndex;
2005-06-02 18:16:43 +00:00
@end