mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
Mingw-32 improvements.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22048 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f0b8d8eb84
commit
6f72ee0314
4 changed files with 1511 additions and 2778 deletions
|
@ -261,6 +261,25 @@ static const NSMapTableValueCallBacks WatcherMapValueCallBacks =
|
|||
bRet = PeekMessage(&msg, 0, 0, 0, PM_REMOVE);
|
||||
if (bRet != 0)
|
||||
{
|
||||
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)
|
||||
{
|
||||
HANDLE handle;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue