Re: [AD] drag and drop win32 |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
i spotted this in the CHANGES for 4.1.12 Angelo Mottola let application bundles accept files dragged onto the application icon under MacOS X.I'm not sure it means drag-and-drop for Allegro apps, but Angelo will certainly set us straight.
This means one can drag and drop a file on top of an Allegro application icon, and the app will launch with the dragged item's filename as the only command line argument (argv[1]). This was mainly added to make Alex the Allegator 4 to work properly here with custom maps; you drag a text file specifying the maps on top of the game exe, and the game loads the maps from that file. Under Win32 it works this way, so I assumed I could emulate the behaviour under OSX too...
-- Angelo Mottola a.mottola@xxxxxxxxxx
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |