comp.lang.ada
 help / color / mirror / Atom feed
* OSX Quit is not the same as Close
@ 2018-12-15 11:23 ahlan.marriott
  2018-12-16 19:35 ` gautier_niouzes
  0 siblings, 1 reply; 4+ messages in thread
From: ahlan.marriott @ 2018-12-15 11:23 UTC (permalink / raw)


Hi,

Our applications use GtkAda and catch the main window close-event to shutdown.
Under Windows this works fine but OSX differentiates between closing the main window and quitting the application.
Under OSX closing the main window behaves as expected but using Quit from the docking icon has no effect
From what I understand (which of course is very little) we need to catch the NsApplicationShouldTerminate event - which has nothing to do with Gtk because it has nothing to do with the GUI - an application can be asked to terminate even if it hasn't got a GUI.

But how do I go about catching and processing this signal.
Does anyone know how to do this in Ada?

Best wishes,
Ahlan



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-12-21 18:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-15 11:23 OSX Quit is not the same as Close ahlan.marriott
2018-12-16 19:35 ` gautier_niouzes
2018-12-17  7:10   ` ahlan.marriott
2018-12-21 18:26     ` ahlan.marriott

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox