Germán Arias wrote:
Attached a patch to NSApplication, to minimize all windows when the
user
hide the app (or when is deactivated) if the AppIcon is suppressed. I
know this is not the most elegant solution but avoid loss the app. I
think the idea of have a miniaturized AppIcon is good, but for some
reason, this AppIcon don't miniaturize after call -miniaturize:. Of
course the user can minimize that AppIcon, but isn't the idea. Also I
added "#ifdef _MINGW32_ [self miniaturizeAll: self]; #else...." in
method deactivate:, just for be consistently.
<icon.patch>_______________________________________________
Gnustep-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnustep-dev
Miniaturizing all windows when an application is hidden is a
reasonable workaround to avoid losing the app when there is no app icon.
However, miniaturizing all windows of an application when it is
deactivated is definitely a BAD idea. When the user switches to
another application (which is when -deactivate: is called) the
application's windows should remain visible for the user. Of course,
there is a problem when an application has no main window when you
switch to another application, but I think that the application will
terminate in that case (recall that panels in general are not supposed
to be miniaturized).
Wolfgang
_______________________________________________
Gnustep-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnustep-dev