What makes it possible to drag-open files on a Mac?

file, macos

Solution

I believe it's the list of supported file types set in the application's `Info.plist`. If you drag a supported file type onto the app, it will allow the drop. Otherwise it will not.

Problem

I just noticed that not all icons in the dock allows you to drag files to them. For example, I can drag a file to textedit but not finder. What exactly is it that decides whether or not an application supports an action like that? Just curious.

Original source

Related problems