View Issue Details

IDProjectCategoryView StatusLast Update
0035024LazarusLCLpublic2020-01-28 05:18
ReporterRyan Joseph Assigned ToDmitry Boyarintsev  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionwon't fix 
Product Version2.1 (SVN) 
Summary0035024: TOpenDialog title bar for Mac/Cocoa
DescriptionStarting in 10.12 (I *think*) the title bar for open/save dialogs has been hidden which renders the title property in Lazarus useless.

This patch proposes a runtime check if the system is 10.12 or higher to route the title text to the message field of the dialog box (which now serves as the title bar effectively).
TagsNo tags attached.
Fixed in Revision
LazTarget-
WidgetsetCocoa
Attached Files

Activities

Ryan Joseph

2019-02-06 16:45

reporter  

diff.txt (469 bytes)   
160a161
>   majorVersion, minorVersion: integer;
304a306,314
>     { on macOS 10.12+ the title bar has been removed from open/save dialogs so we
>       pass the title to the message field as the default behavior }
>     {$ifdef DARWIN}
>     Gestalt(gestaltSystemVersionMajor, majorVersion);
>     Gestalt(gestaltSystemVersionMinor, minorVersion);
>     if (majorVersion = 10) and (minorVersion >= 12) then
>       openDlg.setMessage(openDlg.title);
>     {$endif}
> 
diff.txt (469 bytes)   

Ryan Joseph

2019-02-06 16:46

reporter  

open dialog screen.jpg (45,919 bytes)   
open dialog screen.jpg (45,919 bytes)   

Dmitry Boyarintsev

2019-02-08 16:13

developer   ~0113946

https://stackoverflow.com/questions/36879212/title-bar-missing-in-nsopenpanel

Dmitry Boyarintsev

2020-01-28 05:18

developer   ~0120783

this is Apple's choice to get rid of a file panel caption.

Issue History

Date Modified Username Field Change
2019-02-06 16:45 Ryan Joseph New Issue
2019-02-06 16:45 Ryan Joseph File Added: diff.txt
2019-02-06 16:46 Ryan Joseph File Added: open dialog screen.jpg
2019-02-08 16:13 Dmitry Boyarintsev Note Added: 0113946
2020-01-28 05:18 Dmitry Boyarintsev Assigned To => Dmitry Boyarintsev
2020-01-28 05:18 Dmitry Boyarintsev Status new => resolved
2020-01-28 05:18 Dmitry Boyarintsev Resolution open => won't fix
2020-01-28 05:18 Dmitry Boyarintsev LazTarget => -
2020-01-28 05:18 Dmitry Boyarintsev Widgetset Cocoa => Cocoa
2020-01-28 05:18 Dmitry Boyarintsev Note Added: 0120783