[Lazarus] Carbon: Loosing kAEOpenDocuments AppleEvents before AppRun

dominique at savagesoftwaresolutions.com dominique at savagesoftwaresolutions.com
Sat Oct 31 00:23:39 CET 2009


I'd be in favour of Hans-Peter's solution until something more standard
works.

This would at least allow things to work now, even if it is a workaround.
As opposed to the current system, which only works in one case.

Remember it is not just the Application.ProcessMessages that is the
problem. 
It also occurs if you have more than 1 form between .Initialise and .Run


Dominique. 

On Fri, 30 Oct 2009 19:34:11 +0100, Hans-Peter Diettrich
<DrDiettrich1 at aol.com> wrote:
> 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
> 
> 
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus




More information about the Lazarus mailing list