• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Drag and drop files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Drag and drop files (From: Ben Mackin <email@hidden>)

  • Prev by Date: Re: Mounting Remote Volumes
  • Next by Date: Re: NSCalendarView / NSCalendarControl
  • Previous by thread: <no subject>
  • Next by thread: Info.plist
  • Index(es):
    • Date
    • Thread