Re: Drag and drop files
Re: Drag and drop files
- Subject: Re: Drag and drop files
- From: Cyril Godefroy <email@hidden>
- Date: Mon, 25 Feb 2002 07:31:28 +0100
You have to use the NSDraggingDestination protocol. A somewhat working
example is a small utility I released yesterday called DragPathForPascal
(available on versiontracker). Read the doc, and if really you don't get
it, take my code.
On Monday, February 25, 2002, at 03:47 AM, Ben Mackin wrote:
What is it that I would need to do in order to allow the draging of a
file
over a window, and then get the path of the file into a NSString?
I ask because in my program right now I have a choose button that
brings up
an open dialog to choose the file, but it would make things easier for
the
end user if they could just drag the file onto this window.
Thanks,
Ben
http://www.shayufilms.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.