gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about _windowWillClose:


From: Germán Arias
Subject: Re: Question about _windowWillClose:
Date: Thu, 15 Aug 2013 15:45:07 -0600
User-agent: GNUMail (Version 1.2.0)

On 2013-08-15 01:31:26 -0600 Wolfgang Lux <address@hidden> wrote:

> Germán Arias wrote:
> 
>> In _windowWillClose: at NSApplication, why not use
>> GSAllWindows() instead GSOrderedWindows()?. This
>> make more sense.
> 
> You cannot simply replace GSOrderedWindows by GSAllWindows (incidentally, I 
> think you should use [self windows] instead of GSAllWindows). The purpose of 
> method _windowWillClose: is to detect when the last window of the application 
> was closed, but you certainly do not want to take invisible windows (e.g., 
> panels that have been ordered out by the application) into account when 
> testing whether the last application window was closed. So a more complex 
> logic will be required here.
> 
> Wolfgang
> 
> 

I see the problem now.

Germán.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]