mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +00:00
Debug/fix new window specific handling code ... allow generic (null)
window handle only if window specific code is not called. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21921 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ca640e89ff
commit
eaf8db8c42
4 changed files with 56 additions and 33 deletions
|
@ -1,21 +1,17 @@
|
|||
#include "config.h"
|
||||
#include "GNUstepBase/preface.h"
|
||||
#include "Foundation/NSRunLoop.h"
|
||||
#include "Foundation/NSDebug.h"
|
||||
#include "../GSRunLoopCtxt.h"
|
||||
|
||||
@implementation NSRunLoop (mingw32)
|
||||
/**
|
||||
* Adds a target to the loop in the specified mode for the
|
||||
* win32 messages.<br />
|
||||
* Only a target+selector is added in one mode. Successive
|
||||
* calls overwrite the previous.<br />
|
||||
*/
|
||||
- (void) addMsgTarget: (id)target
|
||||
withMethod: (SEL)selector
|
||||
forMode: (NSString*)mode
|
||||
{
|
||||
GSRunLoopCtxt *context;
|
||||
|
||||
// GSOnceMLog(@"This method is deprecated, use -addEvent:type:watcher:forMode");
|
||||
context = NSMapGet(_contextMap, mode);
|
||||
if (context == nil)
|
||||
{
|
||||
|
@ -26,11 +22,6 @@
|
|||
context->msgTarget = target;
|
||||
context->msgSelector = selector;
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete the target of the loop in the specified mode for the
|
||||
* win32 messages.<br />
|
||||
*/
|
||||
- (void) removeMsgForMode: (NSString*)mode
|
||||
{
|
||||
GSRunLoopCtxt *context;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue