This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 41068
    
  43
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
 
 
subject: How to get new file types recognized for drag&drop?
 
Similar Threads
Trouble launching Tomcat as daemon upon Mac startup
Window arrays
Trouble figuring out why Tomcat isn't launching on startup
Character conversion error: "Malformed UTF-8 char -- is an XML encoding declaration m
Spring jQuery form submit request.getSession(false) returns session but with a new session id