Re: Drag and drop-folders
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