• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.)

Thanks,
Ulf

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic