diff options
| author | Manolo Gouy <Manolo> | 2017-10-17 09:01:28 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-10-17 09:01:28 +0000 |
| commit | fae02f2b4d8b477ed82b5bc337bcd5c2b68d737d (patch) | |
| tree | bcf2d8142d1dbace110b912e26e7a38495093963 /examples/README.examples | |
| parent | dbc9f1131c59e15a7582e9c5ad034186249b0cbf (diff) | |
Mac OS: complete changes needed for 10.13 "High Sierra" regarding how FLTK applications start.
With MacOS 10.13 "High Sierra", it was necessary to change what happens at application start time.
The new procedure is:
fl_open_display() calls [NSApp run], and during this call:
the main event loop is started;
the app delegate receives an openFile: message for each file dropped on the app icon. Each
such filename is memorised in an NSMutableArray called dropped_files_list;
the app delegate receives applicationDidFinishLaunching and stops the main event loop
(this seems to occur unpredictably after the first openFile: message or after all of them).
When the FLTK event loop begins, it checks whether dropped_files_list is empty. If it is not,
the first element of this list is a filename which is opened and is removed from dropped_files_list.
This new setup allows to turn resizable windows fullscreen and back as expected under MacOS,
and to support launching apps while dropping file(s) on its icon.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12508 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'examples/README.examples')
0 files changed, 0 insertions, 0 deletions
