Recent

Author Topic: Dragging files to .app no longer loads them  (Read 2992 times)

Espectr0

  • Full Member
  • ***
  • Posts: 235
Dragging files to .app no longer loads them
« on: August 14, 2025, 01:37:15 am »
Hola,
 
With Lazarus 4.0 and earlier, I could (individually) drag .srt (SubRip), .vtt (WebVTT), and .itt (iTunes Timed Text) files onto my .app, and it would open them without any issues on OS X El Capitan (10.11.6).
However, after updating Lazarus to 4.2, I now get an error: The document “[example]” could not be opened. App cannot open files in the “Text file” format.

Is it possible that something has changed internally in Lazarus?

Thanks in advance!

cdbc

  • Hero Member
  • *****
  • Posts: 2600
    • http://www.cdbc.dk
Re: Dragging files to .app no longer loads them
« Reply #1 on: August 14, 2025, 09:55:51 am »
Hi
Hmmm, have you checked for BOM (B)yte(O)rder(M)ark in the srt files?!?
There are BOMs for utf8 & utf16 BE/LE...
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

Espectr0

  • Full Member
  • ***
  • Posts: 235
Re: Dragging files to .app no longer loads them
« Reply #2 on: August 14, 2025, 12:33:42 pm »
When I compiled my app with Lazarus 4 or earlier, it worked. I think the problem started with Lazarus 4.2. The message I get is from macOS as soon as I drag the file over the .app.

madref

  • Hero Member
  • *****
  • Posts: 1116
  • ..... A day not Laughed is a day wasted !!
    • Nursing With Humour
Re: Dragging files to .app no longer loads them
« Reply #3 on: August 23, 2025, 02:16:19 pm »
Did you set all the path correctly?
You treat a disease, you win, you lose.
You treat a person and I guarantee you, you win, no matter the outcome.

Main Platform:
--------------
Mac OS X Tahoe 26.2
Lazarus 4.99 (rev main_4_99-3149-g7867f6275c) FPC 3.3.1 x86_64-darwin-cocoa

Windows 10 Pro
Lazarus 3.99 (rev cbfd80ce39)

Espectr0

  • Full Member
  • ***
  • Posts: 235
Re: Dragging files to .app no longer loads them
« Reply #4 on: August 24, 2025, 01:34:10 pm »
I haven't changed anything in my app, I just recompiled it with the new Lazarus and it stopped working. What should I check?

Maybe something changed with macOS El Capitan compatibility?

madref

  • Hero Member
  • *****
  • Posts: 1116
  • ..... A day not Laughed is a day wasted !!
    • Nursing With Humour
Re: Dragging files to .app no longer loads them
« Reply #5 on: August 24, 2025, 11:29:58 pm »
Could it have something to do with 32-bits vs 64-bits?
You could also check if all your links/path are still correct.
You treat a disease, you win, you lose.
You treat a person and I guarantee you, you win, no matter the outcome.

Main Platform:
--------------
Mac OS X Tahoe 26.2
Lazarus 4.99 (rev main_4_99-3149-g7867f6275c) FPC 3.3.1 x86_64-darwin-cocoa

Windows 10 Pro
Lazarus 3.99 (rev cbfd80ce39)

Espectr0

  • Full Member
  • ***
  • Posts: 235
Re: Dragging files to .app no longer loads them
« Reply #6 on: August 25, 2025, 12:08:17 am »
I only use 64-bit, everything is still the same. The only change was updating Lazarus.

madref

  • Hero Member
  • *****
  • Posts: 1116
  • ..... A day not Laughed is a day wasted !!
    • Nursing With Humour
Re: Dragging files to .app no longer loads them
« Reply #7 on: August 25, 2025, 11:20:10 am »
Pffff.... difficult then....
ask this same question in the General section maybe you get your answer then... because I am at a loss.
You treat a disease, you win, you lose.
You treat a person and I guarantee you, you win, no matter the outcome.

Main Platform:
--------------
Mac OS X Tahoe 26.2
Lazarus 4.99 (rev main_4_99-3149-g7867f6275c) FPC 3.3.1 x86_64-darwin-cocoa

Windows 10 Pro
Lazarus 3.99 (rev cbfd80ce39)

ravkepar

  • New member
  • *
  • Posts: 9
Re: Dragging files to .app no longer loads them
« Reply #8 on: November 29, 2025, 05:05:59 pm »
I've written a subtitle editor and don't have this problem. I've implemented the drage & drop function a few years ago in Lazarus 3.x and now I'm using Lazarus 4.4 and everything still works fine. You are using the 'ondropfiles' event?

Boleeman

  • Hero Member
  • *****
  • Posts: 1103
Re: Dragging files to .app no longer loads them
« Reply #9 on: January 13, 2026, 10:06:09 pm »
"Could it have something to do with 32-bits vs 64-bits?"

On Windows I noticed that seizing drag and drop behavior for 32Bit compiling, but not for 64Bit compiling. Perhaps Mac Lazarus apps have the same problem?

 

TinyPortal © 2005-2018