play around with the drag overlay

This commit is contained in:
Mitchell Livingston 2007-12-27 23:31:54 +00:00
parent 92938acdf0
commit 83e2b3d547
1 changed files with 1 additions and 3 deletions

View File

@ -51,6 +51,7 @@
[NSDictionary dictionaryWithObjectsAndKeys: self, NSViewAnimationTargetKey, [NSDictionary dictionaryWithObjectsAndKeys: self, NSViewAnimationTargetKey,
NSViewAnimationFadeInEffect, NSViewAnimationEffectKey, nil]]]; NSViewAnimationFadeInEffect, NSViewAnimationEffectKey, nil]]];
[fFadeInAnimation setDuration: 0.15]; [fFadeInAnimation setDuration: 0.15];
[fFadeInAnimation setAnimationBlockingMode: NSAnimationNonblockingThreaded];
fFadeOutAnimation = [[NSViewAnimation alloc] initWithViewAnimations: [NSArray arrayWithObject: fFadeOutAnimation = [[NSViewAnimation alloc] initWithViewAnimations: [NSArray arrayWithObject:
[NSDictionary dictionaryWithObjectsAndKeys: self, NSViewAnimationTargetKey, [NSDictionary dictionaryWithObjectsAndKeys: self, NSViewAnimationTargetKey,
@ -165,9 +166,6 @@
- (void) fadeOut - (void) fadeOut
{ {
if ([self alphaValue] <= 0.0)
return;
//stop other animation and set to same progress //stop other animation and set to same progress
if ([fFadeInAnimation isAnimating]) if ([fFadeInAnimation isAnimating])
{ {