mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-27 10:40:50 +00:00
we don't have to support it. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21922 72102866-910b-0410-8b05-ffd578937521
36 lines
898 B
Objective-C
36 lines
898 B
Objective-C
#include "config.h"
|
|
#include "GNUstepBase/preface.h"
|
|
#include "Foundation/NSRunLoop.h"
|
|
#include "Foundation/NSDebug.h"
|
|
#include "../GSRunLoopCtxt.h"
|
|
|
|
@implementation NSRunLoop (mingw32)
|
|
- (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)
|
|
{
|
|
context = [[GSRunLoopCtxt alloc] initWithMode: mode extra: _extra];
|
|
NSMapInsert(_contextMap, context->mode, context);
|
|
RELEASE(context);
|
|
}
|
|
context->msgTarget = target;
|
|
context->msgSelector = selector;
|
|
}
|
|
- (void) removeMsgForMode: (NSString*)mode
|
|
{
|
|
GSRunLoopCtxt *context;
|
|
|
|
context = NSMapGet(_contextMap, mode);
|
|
if (context == nil)
|
|
{
|
|
return;
|
|
}
|
|
context->msgTarget = nil;
|
|
}
|
|
@end
|