mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Don't cope with quit here ... do it in back end
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22271 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
457bcfd021
commit
1659013d89
1 changed files with 0 additions and 19 deletions
|
@ -161,25 +161,6 @@ static const NSMapTableValueCallBacks WatcherMapValueCallBacks =
|
||||||
{
|
{
|
||||||
while (PeekMessage(&msg, 0, 0, 0, PM_REMOVE))
|
while (PeekMessage(&msg, 0, 0, 0, PM_REMOVE))
|
||||||
{
|
{
|
||||||
if (msg.message == WM_QUIT)
|
|
||||||
{
|
|
||||||
Class c = NSClassFromString(@"NSApplication");
|
|
||||||
|
|
||||||
if (c == 0)
|
|
||||||
{
|
|
||||||
[NSException raise: NSGenericException
|
|
||||||
format: @"Received WM_QUIT"];
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
SEL s = NSSelectorFromString(@"sharedApplication");
|
|
||||||
id o = [c performSelector: s];
|
|
||||||
|
|
||||||
s = NSSelectorFromString(@"terminate:");
|
|
||||||
[o performSelector: s withObject: nil];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (num_winMsgs > 0)
|
if (num_winMsgs > 0)
|
||||||
{
|
{
|
||||||
HANDLE handle;
|
HANDLE handle;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue