Revision: 5409
http://skim-app.svn.sourceforge.net/skim-app/?rev=5409&view=rev
Author: hofman
Date: 2009-06-08 18:09:34 +0000 (Mon, 08 Jun 2009)
Log Message:
-----------
fix method name and reset tracking rects
Modified Paths:
--------------
trunk/SKNavigationWindow.m
Modified: trunk/SKNavigationWindow.m
===================================================================
--- trunk/SKNavigationWindow.m 2009-06-08 18:06:09 UTC (rev 5408)
+++ trunk/SKNavigationWindow.m 2009-06-08 18:09:34 UTC (rev 5409)
@@ -505,22 +505,28 @@
[super dealloc];
}
-- (void)viewWillMoveToWindow {
+- (void)viewWillMoveToWindow:(NSWindow *)newWindow {
if (trackingRectTag != 0) {
[self removeTrackingRect:trackingRectTag];
trackingRectTag = 0;
}
- if ([[SKNavigationSlider superclass] instancesRespondToSelector:_cmd])
- [super viewWillMoveToWindow];
+ [super viewWillMoveToWindow:newWindow];
}
- (void)viewDidMoveToWindow {
if ([self window])
trackingRectTag = [self addTrackingRect:[self bounds] owner:self
userData:NULL assumeInside:NO];
- if ([[SKNavigationSlider superclass] instancesRespondToSelector:_cmd])
- [super viewDidMoveToWindow];
+ [super viewDidMoveToWindow];
}
+- (void)resetCursorRects {
+ [super resetCursorRects];
+ if (trackingRectTag)
+ [self removeTrackingRect:trackingRectTag];
+ if ([self window])
+ trackingRectTag = [self addTrackingRect:[self bounds] owner:self
userData:NULL assumeInside:NO];
+}
+
- (NSString *)toolTip {
return toolTip;
}
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