• 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-folders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drag and drop-folders


  • Subject: Re: Drag and drop-folders
  • From: email@hidden
  • Date: Wed, 24 Oct 2001 21:31:02 +0930

do something like...

[[self window] registerForDraggedTypes:[NSArray arrayWithObject:NSFilenamesPboardType]];

in your window controller if you have one, and you will get every file type including folder. This is copied straight from a program I'm working on so if you use it or any part of it in your program please include some sort of acknowledgment ;-)

If you only want to receive certain types then you'll have to test for them in your draggingEntered: method.

for dragging on your app, I not sure but I think there is a 'fold' type for folders.

On Wednesday, October 24, 2001, at 01:15 PM, Peter Ammon wrote:

How can I permit a user to drag and drop folders onto my application in the Finder and in the Dock? I'm guessing I have to specify something in my Info.plist file, but I can't figure out what.

Thanks for any advice.

-Peter
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


  • Follow-Ups:
    • Re: Drag and drop-folders
      • From: Peter Ammon <email@hidden>
References: 
 >Drag and drop-folders (From: Peter Ammon <email@hidden>)

  • Prev by Date: Re: KeyDown event
  • Next by Date: Re: Images in bundles
  • Previous by thread: Re: Drag and drop-folders
  • Next by thread: Re: Drag and drop-folders
  • Index(es):
    • Date
    • Thread