Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to get new file types recognized for drag&drop?  RSS feed

Ulf Dittmer
Posts: 42972
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody-

I'm in the process of Mac-ifying a Java app, adding a native launcher, setting up icons, registering file types, and so on. In the info.plist file I have defined a new file type as specified below. The developer docs state that that is sufficient to have the new file type (immodestly called ".ulf") recognized as a file it should open with my app, and double-clicking it now works fine. But dragging a file of the type on the icon of my app is not recognized, i.e. no open document event is sent. Is there some other setting I need to perform in the application to enable drag&drop? (I have verified with ScriptEditor that sending an open document event does result in an event being sent and handled correctly.)


Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!