Update for new runloop api under ming32 (changed in base in CVS today)

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@20786 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2005-02-23 16:12:05 +00:00
parent 9745486086
commit 2a648ca576
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2005-02-23 Luis Cabellos
* Source/win32/WIN32Server.m: Use new run loop api under mingw32
2005-02-22 Adam Fedor <fedor@gnu.org>
* configure.ac: Rewrite, avoid setting vars unecessarily. Use

View file

@ -113,7 +113,7 @@ LRESULT CALLBACK MainWndProc(HWND hwnd, UINT uMsg,
watcher: (id<RunLoopEvents>)self
forMode: mode];
#else
// FIXME
#if 0
NSTimer *timer;
timer = [NSTimer timerWithTimeInterval: 0.01
@ -122,6 +122,11 @@ LRESULT CALLBACK MainWndProc(HWND hwnd, UINT uMsg,
userInfo: nil
repeats: YES];
[[NSRunLoop currentRunLoop] addTimer: timer forMode: mode];
#else
[[NSRunLoop currentRunLoop] addMsgTarget: self
withMethod: @selector(callback:)
forMode: mode];
#endif
#endif
}