Forum > Cocoa

[SOLVED] Lazarus: OpenDialog with filters is getting bigger and bigger

<< < (2/5) > >>

ChrisR:
Running this from the command line:
  defaults read lazarus.freepascal.ide
Reports:

{
    NSNavLastRootDirectory = "~/src/lazarus/components/printers/cocoa";
    NSNavLastUserSetHideExtensionButtonState = 1;
    NSNavPanelExpandedSizeForOpenMode = "{944, 448}";
    NSNavPanelExpandedSizeForSaveMode = "{929, 448}";
    NSNavPanelExpandedStateForSaveMode = 1;
    "NSWindow Frame NSNavPanelAutosaveName" = "488 472 944 418 0 0 1920 1055 ";
}


And running
  defaults write lazarus.freepascal.ide NSNavPanelExpandedStateForSaveMode -bool false
switches off the save mode. This still does not explain why these panels grow, but maybe it has something to do with how Lazarus handles scaling on retina displays. Is there some way we could have Lazarus applications set the save mode to false by default?

trev:

--- Quote from: ChrisR on December 04, 2020, 06:00:57 pm ---This still does not explain why these panels grow, but maybe it has something to do with how Lazarus handles scaling on retina displays.

--- End quote ---

I don't have a Retina resolution monitor and it happens to me on Big Sur (on my M1 Mac mini), but not on Mojave (on an Intel Mac mini) on the same monitor.

Hansaplast:

--- Quote from: trev on December 04, 2020, 10:48:04 pm ---I don't have a Retina resolution monitor and it happens to me on Big Sur

--- End quote ---


Same here with a Mac Pro. Probably Big Sur related?

trev:

--- Quote from: Hansaplast on December 05, 2020, 02:44:36 pm ---Same here with a Mac Pro. Probably Big Sur related?

--- End quote ---

Curiously Apple's applications do not suffer from it and neither does Firefox nor WiFi Explorer (the only two non-Apple applications I have installed), so it may be a subtle Apple API change in Big Sur.

Hansaplast:

--- Quote from: trev on December 05, 2020, 10:01:25 pm ---Curiously Apple's applications do not suffer from it
--- End quote ---


Good observation ... Maybe Dmitry has an idea why this happens?


On that note, and probably a macOS limitation, I've never been very happy with the file dialogs.
Especially when it comes to filtering certain file types and how certain files and directories are ghosted and others are not.
When looking at BBEdit though, I wonder how flexible these file dialogs are. Try clicking "Options" in a BBEdit filedialog, or even Microsoft Word.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version