mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 15:31:14 +00:00
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:
parent
9745486086
commit
2a648ca576
2 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue