Re: [Lazarus] TTrayIcon on Cocoa

2009-08-26 Thread Tobias Giesen
NSLoadApplication must be called from Carbon application using Cocoa, no matter what stuff is placed in Bundle. Great. Still the icon does not respond to clicks. I tried my own adaptation of the StatusItem, bypassing the LCL. This works fine as long as I use NSApp.run instead of

Re: [Lazarus] TTrayIcon on Cocoa

2009-08-26 Thread dmitry boyarintsev
Great. Still the icon does not respond to clicks. Are using some kind of mix of Cocoa and Carbon widgetset? thanks, dmitry -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] TTrayIcon on Cocoa

2009-08-26 Thread Tobias Giesen
Great. Still the icon does not respond to clicks. Are using some kind of mix of Cocoa and Carbon widgetset? No, I made a totally clean installation of the latest snapshot and created a new minimal test application for this purpose. If you like I can send you the test application. Or does

Re: [Lazarus] TTrayIcon on Cocoa

2009-08-26 Thread dmitry boyarintsev
No, I made a totally clean installation of the latest snapshot and created a new minimal test application for this purpose. If you like I can send you the test application. Or does anybody have a working demo of this? I'm wondering what are you trying to achieve. Even if you make

Re: [Lazarus] TTrayIcon on Cocoa

2009-08-26 Thread Felipe Monteiro de Carvalho
On Wed, Aug 26, 2009 at 10:22 AM, Tobias Giesentobias_subscri...@tgtools.com wrote: Felipe, did the menu work for you? Yes, it did work. Maybe something changed in the mean time in the Carbon interface and broke it. to dmitry: Maybe we could add PasCocoa to Lazarus until a stable FPC is

Re: [Lazarus] TTrayIcon on Cocoa

2009-08-26 Thread dmitry boyarintsev
to dmitry: Maybe we could add PasCocoa to Lazarus until a stable FPC is released with native Cocoa support, what do you think? On the other hand this development may take many years to come in a stable release and when it comes out we can delete PasCocoa from lazarus I'll make an article in

Re: [Lazarus] TTrayIcon on Cocoa

2009-08-26 Thread dmitry boyarintsev
You can't base development on an unstable compiler which isn't even in trunk, but on a separate experimental branch. If you put things in that way, then I can agree with you. Including PasCocoa to Lazarus, would make a lot of things easier. But how should it be added? As part of Cocoa

Re: [Lazarus] TTrayIcon on Cocoa

2009-08-26 Thread Felipe Monteiro de Carvalho
On Wed, Aug 26, 2009 at 3:14 PM, dmitry boyarintsevskalogryz.li...@gmail.com wrote: Currently FPC support is already quite advanced. Lazarus development has always been based in stable compilers and all releases are made with stable compilers. You can't base development on an unstable compiler

Re: [Lazarus] TTrayIcon on Cocoa

2009-08-26 Thread dmitry boyarintsev
In a directory above Cocoa directory. Then we would need to alter the Makefiles in both Carbon and Cocoa interfaces to see them ... I always have trouble with these makefiles. needs to be discussed in lazarus-dev Do you think we should keep the define? I mean, is it a problem to have all