How to drag and drop mp3 songs in the playlist

I am developing a mac desktop based application, Created some playlists using NSOutlineView. I know how to drag and drop in NSTableView, But i don't know how to drag and drop in the playlists according the attached image(like iTunes application) ,I am dragging some songs in the playlist 2.


At the time of selecting the songs from NSTableView, store the selected songs id in a Array. After that when the mouse reach in NSOutlineView the following delegate methods will call that time user can add into the playlist table...

-(NSDragOperation)outlineView:(NSOutlineView *)outlineView validateDrop:(id<NSDraggingInfo>)info proposedItem:(id)item proposedChildIndex:(NSInteger)index{
    return YES;


- (BOOL)outlineView:(NSOutlineView *)ov acceptDrop:(id <NSDraggingInfo>)info item:(id)item childIndex:(NSInteger)childIndex{
    return YES;

Need Your Help

Laravel Guzzle doesn't work but Curl does

php laravel curl guzzle

I'm using Guzzle for working with external API.

Is there a compiled* programming language with dynamic, maybe even weak typing?

programming-languages typing static-typing dynamic-typing

I wondered if there is a programming language which compiles to machine code/binary (not bytecode then executed by a VM, that's something completely different when considering typing) that features