The R Project SVN R-packages

Rev

Rev 6116 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6116 Rev 6238
Line 402... Line 402...
402
- (void)runUntilUserActivity
402
- (void)runUntilUserActivity
403
{
403
{
404
	[self setValue:[NSDate date] forKey:@"didOpenAtDate"];
404
	[self setValue:[NSDate date] forKey:@"didOpenAtDate"];
405
	mousePositionWhenOpened = NSZeroPoint;
405
	mousePositionWhenOpened = NSZeroPoint;
406
 
406
 
-
 
407
 
407
	NSWindow* appKeyWindow = [[NSApp keyWindow] retain];
408
	NSWindow* appKeyWindow = [[NSApp keyWindow] retain];
408
	BOOL didAcceptMouseMovedEvents = [appKeyWindow acceptsMouseMovedEvents];
409
	BOOL didAcceptMouseMovedEvents = [appKeyWindow acceptsMouseMovedEvents];
409
	[appKeyWindow setAcceptsMouseMovedEvents:YES];
410
	[appKeyWindow setAcceptsMouseMovedEvents:YES];
410
	NSEvent* event = nil;
411
	NSEvent* event = nil;
411
	NSInteger eventType;
412
	NSInteger eventType;
Line 445... Line 446...
445
	if(![self isVisible] || animationTimer)
446
	if(![self isVisible] || animationTimer)
446
		return;
447
		return;
447
 
448
 
448
	[self stopAnimation:self];
449
	[self stopAnimation:self];
449
	[self setValue:[NSDate date] forKey:@"animationStart"];
450
	[self setValue:[NSDate date] forKey:@"animationStart"];
450
	[self setValue:[NSTimer scheduledTimerWithTimeInterval:0.01f target:self selector:@selector(animationTick:) userInfo:nil repeats:YES] forKey:@"animationTimer"];
451
	[self setValue:[NSTimer scheduledTimerWithTimeInterval:0.001f target:self selector:@selector(animationTick:) userInfo:nil repeats:YES] forKey:@"animationTimer"];
451
}
452
}
452
 
453
 
453
- (void)animationTick:(id)sender
454
- (void)animationTick:(id)sender
454
{
455
{
455
	CGFloat alpha = 0.97f * (1.0f - 40*slow_in_out(-2.2f * (float)[animationStart timeIntervalSinceNow]));
456
	CGFloat alpha = 0.97f * (1.0f - 40*slow_in_out(-2.2f * (float)[animationStart timeIntervalSinceNow]));