comp.lang.ada
 help / color / mirror / Atom feed
From: ahlan.marriott@gmail.com
Subject: OSX Quit is not the same as Close
Date: Sat, 15 Dec 2018 03:23:09 -0800 (PST)
Date: 2018-12-15T03:23:09-08:00	[thread overview]
Message-ID: <1ca19a21-adfc-45b6-afea-9f7665300ef3@googlegroups.com> (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



             reply	other threads:[~2018-12-15 11:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-15 11:23 ahlan.marriott [this message]
2018-12-16 19:35 ` OSX Quit is not the same as Close gautier_niouzes
2018-12-17  7:10   ` ahlan.marriott
2018-12-21 18:26     ` ahlan.marriott
replies disabled

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