After further testing it seems that the onDropFiles event correctly fires via both Drag/Drop and if you double click a file while the exe is running. The only scenario where OnDropFiles does not fire is if the app is not running and someone double clicks an associated file. In that scenario the command line ParamStr(1) contains some sort of ID.
Does anyone have any other suggestions? Dominique. On Wed, 14 Jan 2009 11:59:24 -0500, <[email protected]> wrote: > I've compared my plist to the Lazarus's and I can't see anything that would > stop it from working from the Finder, but then allows it to work via Drag > and Drop. I've attached the file to this email, in case anyone has a few > minutes to scan through it and see if there is something obvious I've > missed. > > Dominique. > > On Wed, 14 Jan 2009 13:09:16 +0100, "Tom Gregorovic" <[email protected]> > wrote: >> On Tue, Jan 13, 2009 at 5:19 PM, <[email protected]> > wrote: >>> Hi Tom, >>> I've just tested this out and if I Drag and Drop the file onto the >>> application dock icon The OnDropFiles event fires, but if I double > click >>> the file from within finder, the OnDropFiles event does NOT fire. The >>> Info.plist file correctly contains CFBundleTypeExtensions for gmk and >> the >>> CFBundleTypeRole is set to Editor. >>> >>> Am I missing any other setting in the Bundle to fire the OnDropFiles >> event? >>> >> >> Try to look at Lazarus application bundle plist. I think this works >> for it there. >> >> Tom >> _______________________________________________ >> Lazarus mailing list >> [email protected] >> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus _______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
