mirror of
https://github.com/gnustep/libs-back.git
synced 2025-05-30 17:00:52 +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
|
@ -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…
Add table
Add a link
Reference in a new issue