Accepting the right file drops?
Accepting the right file drops?
- Subject: Accepting the right file drops?
- From: "Lucas M. Haley" <email@hidden>
- Date: Sun, 20 Oct 2002 00:56:57 -0700
Hello all --
I am trying to get my document subclass to accept file drops from the finder. In its init: method, I call registerForDraggedTypes: with NSFilenamesPboardType.
But this seems to make the window accept _any_ kind of file. How do I go about restricting it to only certain types (which are my own defined doc types)? In the destination's draggingEntered: do I go through all the documents dragged, and check for the type there? It seems like there should be an easier way.
Thanks for any help!
-Lucas
_______________________________________________
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.