• 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
Accepting the right file drops?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Accepting the right file drops?
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Correctly entering AM/PM using NSDateFormatter
  • Next by Date: Re: Accepting the right file drops?
  • Previous by thread: Re: Correctly entering AM/PM using NSDateFormatter
  • Next by thread: Re: Accepting the right file drops?
  • Index(es):
    • Date
    • Thread