[Lazarus] Carbon: Loosing kAEOpenDocuments AppleEvents before AppRun

Hans-Peter Diettrich DrDiettrich1 at aol.com
Fri Oct 30 19:34:11 CET 2009


dmitry boyarintsev schrieb:

> It doesn't work as expected from OSX point of view, because
> AEOpenDocument is used to start an application with opening some file.
> For other systems command-line parameters are used.
> 
> I'm not sure how to fix the problem, yet. So i far i can suggest not
> to use Application.ProcessMessages in component initialization.

When an application *can* be called with command line arguments, IMO a 
translation into such an argument is the best solution. When an 
application expects such arguments, it will check and process the passed 
arguments, regardless of how they have been supplied.

DoDi





More information about the Lazarus mailing list