Recent

Author Topic: New version of MouseAndKeyInput (cocoa added)  (Read 3441 times)

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
New version of MouseAndKeyInput (cocoa added)
« on: December 18, 2019, 10:22:33 pm »
Hi everyone, I wanted to tell you that I modified the MouseAndKeyInput package to make it work also with the graphical environment cocoa. I also enclose an example to test it on cocoa. I would appreciate someone giving me feedback. Thanks
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: New version of MouseAndKeyInput (cocoa added)
« Reply #1 on: January 30, 2023, 04:08:06 pm »
Sorry for a 3+ year delay.
I created a patch based on your code and uploaded it here :
 https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/38500

Everybody with MacOS Cocoa please test.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: New version of MouseAndKeyInput (cocoa added)
« Reply #2 on: February 18, 2023, 12:06:50 am »
Ping...
Can somebody test the patch in bug tracker and verify it compiles under MacOS Cocoa. Then I can apply it. At least it does not break other widgetsets.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: New version of MouseAndKeyInput (cocoa added)
« Reply #3 on: June 13, 2023, 09:43:38 am »
I finally applied the patch.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
Re: New version of MouseAndKeyInput (cocoa added)
« Reply #4 on: June 13, 2023, 10:16:11 am »
Sorry but I haven't used Mac OS X for two years.
The important thing is that the problem is solved. Thank you
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: New version of MouseAndKeyInput (cocoa added)
« Reply #5 on: June 13, 2023, 02:31:18 pm »
Sorry Juha, I did not see this discussion previously.

I just tried main and while it builds a runnable Lazarus, my app will not build, I get an unhandled exception, EAccessViolation, possibly, I think during linking.

I went back to a main of two or so weeks ago (that I had already installed) and its fine but I have not confirmed its the patch you just applied causing the AV. I'm testing on an old, steam powered Intel Sierra Mac and its a slow process and I cannot do much more tonight, sorry.

Will get back to it as soon as I can ....

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: New version of MouseAndKeyInput (cocoa added)
« Reply #6 on: June 14, 2023, 01:52:03 pm »
@dbannon, the patch affects only MouseAndKeyInput package. Does your application use it?
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: New version of MouseAndKeyInput (cocoa added)
« Reply #7 on: June 15, 2023, 12:55:42 am »
No, sorry, false report. Bisecting very slow process on my slow Mac. The problem I am seeing entered the tree two days earlier than commit mentioned here.

I'll make a separate bug report about it.  I suspect its something to do with lazbuild because it does not show up when building in the IDE.

Davo

Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: New version of MouseAndKeyInput (cocoa added)
« Reply #8 on: June 15, 2023, 02:55:15 pm »
And it appears Juha has fixed the (MacOS) lazbuild problem I experienced with 80a20911 too !

Thanks Juha !

Davi
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

 

TinyPortal © 2005-2018