Re: [Lazarus] Carbon: Loosing kAEOpenDocuments AppleEvents before AppRun

2009-11-02 Thread EarMaster - Bent Normann Olsen
li...@gmail.com] > Sent: 2. november 2009 13:11 > To: Lazarus mailing list > Subject: Re: [Lazarus] Carbon: Loosing kAEOpenDocuments AppleEvents > before AppRun > > On Mon, Nov 2, 2009 at 3:00 PM, EarMaster - Bent Olsen > wrote: > > I made a small simple test app with late

Re: [Lazarus] Carbon: Loosing kAEOpenDocuments AppleEvents before AppRun

2009-11-02 Thread dmitry boyarintsev
On Mon, Nov 2, 2009 at 3:00 PM, EarMaster - Bent Olsen wrote: > I made a small simple test app with latest snapshot of Lazarus/FPC, with two > forms, one with TApplicationProperties and OnDropFiles, and the second > showing as modal before .Run - it seems to work as it should. Normann, could you p

Re: [Lazarus] Carbon: Loosing kAEOpenDocuments AppleEvents before AppRun

2009-11-02 Thread EarMaster - Bent Olsen
; From: dmitry boyarintsev [mailto:skalogryz.li...@gmail.com] > Sent: 31. oktober 2009 20:10 > To: Lazarus mailing list > Subject: Re: [Lazarus] Carbon: Loosing kAEOpenDocuments AppleEvents > before AppRun > > Everyone interested, please test r223

Re: [Lazarus] Carbon: Loosing kAEOpenDocuments AppleEvents before AppRun

2009-11-01 Thread dominique
Hi Dmitry, This seem to work for me. I need to do a bit more testing, but so far it is behaving as expected. Dominique. On Sat, 31 Oct 2009 22:09:45 +0300, dmitry boyarintsev wrote: > Everyone interested, please test r22364 > > thanks, > dmitry -- __

Re: [Lazarus] Carbon: Loosing kAEOpenDocuments AppleEvents before AppRun

2009-10-31 Thread Hans-Peter Diettrich
dmitry boyarintsev schrieb: Think about multi-platform applications. Lazarus/RTL/LCL should offer one unique way to deal with dropped files on app start, independent from the target platform. I can think of Mac OSX only that's able to start application by dragging a document to the application'

Re: [Lazarus] Carbon: Loosing kAEOpenDocuments AppleEvents before AppRun

2009-10-31 Thread dmitry boyarintsev
On Sat, Oct 31, 2009 at 10:43 PM, Hans-Peter Diettrich wrote: > Think about multi-platform applications. Lazarus/RTL/LCL should offer one > unique way to deal with dropped files on app start, independent from the > target platform. I can think of Mac OSX only that's able to start application by dr

Re: [Lazarus] Carbon: Loosing kAEOpenDocuments AppleEvents before AppRun

2009-10-31 Thread Hans-Peter Diettrich
dmitry boyarintsev schrieb: I'd be in favour of Hans-Peter's solution until something more standard works. Carbon widgetset is not ideal in implementation, but i don't think that brining more "features" to it would make it better. Think about multi-platform applications. Lazarus/RTL/LCL shoul

Re: [Lazarus] Carbon: Loosing kAEOpenDocuments AppleEvents before AppRun

2009-10-31 Thread dmitry boyarintsev
Everyone interested, please test r22364 thanks, dmitry -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Carbon: Loosing kAEOpenDocuments AppleEvents before AppRun

2009-10-31 Thread dmitry boyarintsev
On Sat, Oct 31, 2009 at 2:23 AM, wrote: > I'd be in favour of Hans-Peter's solution until something more standard > works. Carbon widgetset is not ideal in implementation, but i don't think that brining more "features" to it would make it better. The problem with converting AEOpenDocument to para

Re: [Lazarus] Carbon: Loosing kAEOpenDocuments AppleEvents before AppRun

2009-10-30 Thread dominique
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

Re: [Lazarus] Carbon: Loosing kAEOpenDocuments AppleEvents before AppRun

2009-10-30 Thread Hans-Peter Diettrich
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 Applicat

Re: [Lazarus] Carbon: Loosing kAEOpenDocuments AppleEvents before AppRun

2009-10-30 Thread dmitry boyarintsev
On Fri, Oct 30, 2009 at 6:37 PM, wrote: > So is this now working as expected? Yes and no. It's working as expected from LCL point of view. 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-

Re: [Lazarus] Carbon: Loosing kAEOpenDocuments AppleEvents before AppRun

2009-10-30 Thread dominique
So is this now working as expected? Dominique. On Wed, 28 Oct 2009 19:18:47 +0300, dmitry boyarintsev wrote: > It seems like AEOpenDocuments event is processed, but since > OnDropFiles event is not yet assigned, it's not fired. > > So farm I can think of the following solution (in carbon widget

Re: [Lazarus] Carbon: Loosing kAEOpenDocuments AppleEvents before AppRun

2009-10-28 Thread Hans-Peter Diettrich
dmitry boyarintsev schrieb: It seems like AEOpenDocuments event is processed, but since OnDropFiles event is not yet assigned, it's not fired. So farm I can think of the following solution (in carbon widgetset). AEOpenDocument events and gathered and called on Application.Run, since form events

Re: [Lazarus] Carbon: Loosing kAEOpenDocuments AppleEvents before AppRun

2009-10-28 Thread dmitry boyarintsev
It seems like AEOpenDocuments event is processed, but since OnDropFiles event is not yet assigned, it's not fired. So farm I can think of the following solution (in carbon widgetset). AEOpenDocument events and gathered and called on Application.Run, since form events are initialized and would be p

Re: [Lazarus] Carbon: Loosing kAEOpenDocuments AppleEvents before AppRun

2009-10-28 Thread dominique
Ah, this would seem to explain the reason why the OnDropFiles is never firing in my application. I have about 15 forms between Application.Initialize; and Application.Run; and I've never mangaed to get it working under Mac OS X, even though I've followed the examples religiously. I also have a "Bet

Re: [Lazarus] Carbon: Loosing kAEOpenDocuments AppleEvents before AppRun

2009-10-28 Thread EarMaster - Bent Olsen
I might add that this also happens when you call CreateForm for two or more forms, where you call ShowModal (as in a user login form) before the first/main form is showing. The ShowModal calls AppProcessMessages, and hence the events disappears before TApplicationProperties on the main form gets t

[Lazarus] Carbon: Loosing kAEOpenDocuments AppleEvents before AppRun

2009-10-28 Thread EarMaster - Bent Olsen
Hi, I came across a problem when using TApplicationProperties and waiting for OnDropFiles to be called. In a normal Application Initialize, CreateForm, and Run, the OnDropFiles event is fired, but if something happens in between Initialize and Run (like multiple CreateForms with a couple of contr