git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27609 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2009-01-16 13:33:33 +00:00
parent 3d4657d03a
commit b1a66b9002
2 changed files with 24 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2009-01-16 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSAnimation.m: _gs_startAnimationInOwnLoop hopefully fixed
bug #25327
2009-01-12 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSTextStorage.m: Change to use new GC finalization API.

View file

@ -1132,12 +1132,28 @@ nsanimation_progressMarkSorter ( NSAnimationProgress first,NSAnimationProgress s
- (void) _gs_startAnimationInOwnLoop
{
NSRunLoop *loop;
NSDate *end;
[_animator setRunLoopModesForAnimating:
[NSArray arrayWithObject: NSAnimationBlockingRunLoopMode]];
[_animator startAnimation];
while ( [[NSRunLoop currentRunLoop]
runMode: NSAnimationBlockingRunLoopMode
beforeDate: [NSDate distantFuture]] )
loop = [NSRunLoop currentRunLoop];
end = [NSDate distantFuture];
for (;;)
{
if ([loop runMode: NSAnimationBlockingRunLoopMode beforeDate: end] == NO)
{
NSDate *d;
d = [loop limitDateForMode: NSAnimationBlockingRunLoopMode];
if (d == nil)
{
break; // No inputs and no timers.
}
[NSThread sleepUntilDate: d];
}
}
/* do nothing */;
}