Coming from a different approach than you guys, I’ve always allowed any file type to be dropped and then in the OpenDocument event I attempt to figure out what the file type is.
Mainly because we do a lot of image editing and there are so many RAW formats in the wild (some with the same extension), I found it easier to simply try and open the image file, if I don’t get an image in return, I know it’s not supported.
when in time did you add the File Types (FT) in the File Types Set ?
Explanation: I added two FT month ago and added a third last week or so. It was that one who is ignored.
On the other hand, I just created a sample demo for the bug and it does not have the bug at all. Read my entry on the subject.
(all three FT have been added at the same time, from the same icon : the default text/plain with appropriate changes).
I only have to redo that in my 30MB and watch how goes the changes
[quote=122175:@Robert Birge]These things work for me on OSX. They do not work for me on Windows. Has anyone gotten drag and drop to work with a Windows app? If so, I would be grateful for some insights into how to do this.
[/quote]
For OSX you specify a Filetype under “BUILD SETTINGS” for this to work… and it does…
but how (or can) you do this for Windows…
Drag a file to the desktop/dock application icon, and have it open the app, and fire OPENDOCUMENT event
Under “Menu” I can see FileTypeGroup1. Is’nt that the one you are looking for?
Moreover, top-right of the picture: may be you should think about your app name; unless your app’s name is really “app-64bit”, you may choose a different name. And the “bundle Identifier”, should contain your app-name.
For instance, if the app-name is “Wonderful Pictures”, the bundle identifier could look like “com.mycompany.wonderfulpictures”.
I want to make my app to accept any type of files, but the app’s icon will not accept any file.
Maybe I have something wrong with FileTypeGroup settings….
Any advice would be appreciated.
Hi,
from the picture, it seems the fileTypeGroup is all right.
The next step is the code you put into the “OpenDocument” event handler of App.
You’ll notice that such event has got a “item as folderitem” parameter; in fact such “item” is the file you drop onto the app’s icon.
Now, I suppose your app has got a specific menu to open files; so try copy-pasting that code into the “openDocument” event, making sure you use the word “item” in the code you paste.
After that, if the file you drop onto the app’s icon has got the extension you typed into the FileTypeGroup, then the dropping should be succesfull.
(I would make a test using --in FileTypeGroup-- a single extension, maybe preceded by a “.”; and later add other extensions as required).
Extensions . Required. The file extensions for the file type (the “.” prefix is optional). When you have multiple extensions, list them all separated by semi-colons.