From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Received: by 2002:a6b:5a02:: with SMTP id o2mr5348980iob.17.1544872990220; Sat, 15 Dec 2018 03:23:10 -0800 (PST) X-Received: by 2002:a9d:da3:: with SMTP id 32mr122693ots.3.1544872990060; Sat, 15 Dec 2018 03:23:10 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!news.muarf.org!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!209.85.166.215.MISMATCH!k10no158456itk.0!news-out.google.com!v71ni273ita.0!nntp.google.com!k10no158454itk.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 15 Dec 2018 03:23:09 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:1205:c691:8bf0:d095:76ca:afbe:27f7; posting-account=Pm0FhgoAAAAiPscNT3etSZ15tHNZGXm_ NNTP-Posting-Host: 2a02:1205:c691:8bf0:d095:76ca:afbe:27f7 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <1ca19a21-adfc-45b6-afea-9f7665300ef3@googlegroups.com> Subject: OSX Quit is not the same as Close From: ahlan.marriott@gmail.com Injection-Date: Sat, 15 Dec 2018 11:23:10 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:55048 Date: 2018-12-15T03:23:09-08:00 List-Id: Hi, Our applications use GtkAda and catch the main window close-event to shutdo= wn. Under Windows this works fine but OSX differentiates between closing the ma= in window and quitting the application. Under OSX closing the main window behaves as expected but using Quit from t= he docking icon has no effect >From what I understand (which of course is very little) we need to catch th= e NsApplicationShouldTerminate event - which has nothing to do with Gtk bec= ause it has nothing to do with the GUI - an application can be asked to ter= minate 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