wood burning stoves 2.0*
The moose likes Mac OS and the fly likes How to get new file types recognized for drag&drop? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "How to get new file types recognized for drag&drop?" Watch "How to get new file types recognized for drag&drop?" New topic
Author

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

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41621
    
  55
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



Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get new file types recognized for drag&drop?