From: "Andreas Färber" <andreas.faerber@web.de>
To: Juha.Riihimaki@nokia.comJuha.Riihimaki@nokia.com
Cc: Alexander Graf <alex@csgraf.de>,
Mike Kronenberg <mike.kronenberg@kronenberg.org>,
QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH 09/11] Cocoa: Shutdown when window is closed
Date: Mon, 14 Dec 2009 22:44:48 +0100 [thread overview]
Message-ID: <CD08D6FE-DF88-4156-BA1C-84C9AAEC8AA7@web.de> (raw)
In-Reply-To: <9880D1BC-C3D9-4F72-B34F-2C3321A74F62@nokia.com>
Hi,
Am 14.12.2009 um 08:04 schrieb <Juha.Riihimaki@nokia.com> <Juha.Riihimaki@nokia.com
>:
>
> On Dec 13, 2009, at 04:55, ext Andreas Färber wrote:
>
>> The application is not very useful once the guest window is closed.
>> QEMU is not a document-based application; terminating it
>> automatically
>> saves the user another action and resembles SDL behavior.
>>
>> Signed-off-by: Andreas Färber <andreas.faerber@web.de>
>> Cc: Mike Kronenberg <mike.kronenberg@kronenberg.org>
>> Cc: Alexander Graf <alex@csgraf.de>
>> ---
>> cocoa.m | 7 +++++++
>> 1 files changed, 7 insertions(+), 0 deletions(-)
>>
>> diff --git a/cocoa.m b/cocoa.m
>> index 70c249b..09ed3cd 100644
>> --- a/cocoa.m
>> +++ b/cocoa.m
>> @@ -835,6 +837,11 @@ static int cocoa_keycode_to_qemu(int keycode)
>> [[NSWorkspace sharedWorkspace] openFile:[NSString
>> stringWithFormat:@"%@/../doc/qemu/qemu-tech.html",
>> [[NSBundle mainBundle] resourcePath]] withApplication:@"Help
>> Viewer"];
>> }
>> +
>> +- (void)windowWillClose:(NSNotification *)notification
>> +{
>> + [NSApp terminate:self];
>> +}
>> @end
>>
>
> Another way to achieve the same thing is to instead of the above
> changes just introduce a new method for the QemuCocoaAppController
> like:
>
> - (BOOL)applicationShouldTerminateAfterLastWindowClosed:
> (NSApplication *)theApplication
> {
> return YES;
> }
That's ingenious. I had searched for something like this, but around
NSWindow... thanks!
Any other comments? Would you like to add an SoB to the now four
patches proposed by you?
Regards,
Andreas
prev parent reply other threads:[~2009-12-14 21:48 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-13 2:55 [Qemu-devel] Cocoa: ppc64 host support and various improvements Andreas Färber
2009-12-13 2:55 ` [Qemu-devel] [PATCH 01/11] Cocoa: ppc64 host support Andreas Färber
2009-12-13 2:55 ` [Qemu-devel] [PATCH 02/11] Cocoa: Silence warning for cocoa_keycode_to_qemu Andreas Färber
2009-12-13 2:55 ` [Qemu-devel] [PATCH 03/11] Cocoa: Silence warning on Big Endian host Andreas Färber
2009-12-13 2:55 ` [Qemu-devel] [PATCH 04/11] Cocoa: Silence type warning Andreas Färber
2009-12-13 2:55 ` [Qemu-devel] [PATCH 05/11] Cocoa: Fix compilation on Mac OS X v10.4 and earlier Andreas Färber
2009-12-13 2:55 ` [Qemu-devel] [PATCH 06/11] Cocoa: Mark the View as opaque Andreas Färber
2009-12-13 2:55 ` [Qemu-devel] [PATCH 07/11] Cocoa: Redraw the View asynchronously Andreas Färber
2009-12-13 2:55 ` [Qemu-devel] [PATCH 08/11] Cocoa: Don't unconditionally show the window Andreas Färber
2009-12-13 2:55 ` [Qemu-devel] [PATCH 09/11] Cocoa: Shutdown when window is closed Andreas Färber
2009-12-13 2:55 ` [Qemu-devel] [PATCH 10/11] Cocoa: Suppress window resize animation Andreas Färber
2009-12-13 2:55 ` [Qemu-devel] [PATCH 11/11] Cocoa: Use optimized drawing for the window Andreas Färber
2009-12-14 7:04 ` [Qemu-devel] [PATCH 09/11] Cocoa: Shutdown when window is closed Juha.Riihimaki
2009-12-14 21:25 ` [Qemu-devel] [PATCH v2 " Andreas Färber
2009-12-14 21:44 ` Andreas Färber [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CD08D6FE-DF88-4156-BA1C-84C9AAEC8AA7@web.de \
--to=andreas.faerber@web.de \
--cc=Juha.Riihimaki@nokia.comJuha.Riihimaki \
--cc=alex@csgraf.de \
--cc=mike.kronenberg@kronenberg.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).