Revision: 5384
http://skim-app.svn.sourceforge.net/skim-app/?rev=5384&view=rev
Author: hofman
Date: 2009-05-19 07:58:44 +0000 (Tue, 19 May 2009)
Log Message:
-----------
use animator for side panels if available
Modified Paths:
--------------
trunk/SKSideWindow.m
Modified: trunk/SKSideWindow.m
===================================================================
--- trunk/SKSideWindow.m 2009-05-18 16:37:25 UTC (rev 5383)
+++ trunk/SKSideWindow.m 2009-05-19 07:58:44 UTC (rev 5384)
@@ -101,12 +101,16 @@
endFrame = startFrame;
endFrame.size.width = width;
endFrame.origin.x = edge == NSMaxXEdge ? NSMaxX(screenFrame) - width :
NSMinX(screenFrame);
- NSDictionary *slideDict = [NSDictionary dictionaryWithObjectsAndKeys:self,
NSViewAnimationTargetKey, [NSValue valueWithRect:startFrame],
NSViewAnimationStartFrameKey, [NSValue valueWithRect:endFrame],
NSViewAnimationEndFrameKey, nil];
- NSViewAnimation *animation = [[NSViewAnimation alloc]
initWithViewAnimations:[NSArray arrayWithObjects:slideDict, nil]];
- [animation setAnimationBlockingMode:NSAnimationBlocking];
- [animation setDuration:[self animationResizeTime:endFrame]];
- [animation startAnimation];
- [animation release];
+ if ([self respondsToSelector:@selector(animator)]) {
+ [[self animator] setFrame:endFrame display:YES];
+ } else {
+ NSDictionary *slideDict = [NSDictionary
dictionaryWithObjectsAndKeys:self, NSViewAnimationTargetKey, [NSValue
valueWithRect:startFrame], NSViewAnimationStartFrameKey, [NSValue
valueWithRect:endFrame], NSViewAnimationEndFrameKey, nil];
+ NSViewAnimation *animation = [[NSViewAnimation alloc]
initWithViewAnimations:[NSArray arrayWithObjects:slideDict, nil]];
+ [animation setAnimationBlockingMode:NSAnimationBlocking];
+ [animation setDuration:[self animationResizeTime:endFrame]];
+ [animation startAnimation];
+ [animation release];
+ }
}
- (void)slideOut {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit