#import extern NSString *MovedRowsType; extern NSString *iTunesDropType; @interface DNDArrayController : NSArrayController { IBOutlet NSTableView *tableView; } // table view drag and drop support - (BOOL)tableView:(NSTableView *)tv writeRows:(NSArray*)rows toPasteboard:(NSPasteboard*)pboard; - (NSDragOperation)tableView:(NSTableView*)tv validateDrop:(id )info proposedRow:(int)row proposedDropOperation:(NSTableViewDropOperation)op; - (BOOL)tableView:(NSTableView*)tv acceptDrop:(id )info row:(int)row dropOperation:(NSTableViewDropOperation)op; // utility methods -(void)moveObjectsInArrangedObjectsFromIndexes:(NSIndexSet *)indexSet toIndex:(unsigned)index; - (NSIndexSet *)indexSetFromRows:(NSArray *)rows; - (int)rowsAboveRow:(int)row inIndexSet:(NSIndexSet *)indexSet; @end