I'm trying to implement an app with a playlist in, and want to be able to drag a file into it from the Finder.
I've called [tableView registerForDraggedTypes:[NSArray arrayWithObjects:NSFilenamesPboardType, nil]] but I don't know if that's the right call?
I've also implemented - (BOOL)tableViewNSTableView*)tableView acceptDropid <NSDraggingInfo>)info rowint)row dropOperationNSTableViewDropOperation)operation with NSLog-ing to keep track of what's going on.
But nothing really seems to happen, it doesn't accept the drag at all.
Anyone got a really simple example of how to do this?
Cheers guys.
I've called [tableView registerForDraggedTypes:[NSArray arrayWithObjects:NSFilenamesPboardType, nil]] but I don't know if that's the right call?
I've also implemented - (BOOL)tableViewNSTableView*)tableView acceptDropid <NSDraggingInfo>)info rowint)row dropOperationNSTableViewDropOperation)operation with NSLog-ing to keep track of what's going on.
But nothing really seems to happen, it doesn't accept the drag at all.
Anyone got a really simple example of how to do this?
Cheers guys.