Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

imranpundeer

macrumors newbie
Original poster
Jan 10, 2009
25
0
Hi All,
I am a new programmer on MAC OS.
please help me out how can i Drag and Drop some files or folder from my application to Finder. i don't know how to implement Dragging Source.
Any help would be appreciated.

Regards,
Shadab
 

imranpundeer

macrumors newbie
Original poster
Jan 10, 2009
25
0
Hi,
As you suggest that Drag file promises, i have done like that.
In my application Files are dragging from my application to Finder on mouseDown event. So due to this, whenever i click on NSTableView, Every time mouse down event fire, so i am not able to select any row of the table. Please suggest me where should i put my Dragging code except mouse down event for Dragging files from My NStableView to Finder.

Thanks & Regards,
Shadab
 

MrFusion

macrumors 6502a
Jun 8, 2005
613
0
West-Europe
Hi,
As you suggest that Drag file promises, i have done like that.
In my application Files are dragging from my application to Finder on mouseDown event. So due to this, whenever i click on NSTableView, Every time mouse down event fire, so i am not able to select any row of the table. Please suggest me where should i put my Dragging code except mouse down event for Dragging files from My NStableView to Finder.

Thanks & Regards,
Shadab

First look at how to do drag and drop within your table, then expand that knowledge to include NSFilePromisesPboard.

You don't have to use mouse down events, if you want to drag from the table to the finder.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.