Revision: 5900
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5900&view=rev
Author:   hofman
Date:     2009-10-17 14:04:27 +0000 (Sat, 17 Oct 2009)

Log Message:
-----------
redraw tables with history highlighting when first responder status changes

Modified Paths:
--------------
    trunk/SKThumbnailTableView.m
    trunk/SKTocOutlineView.m

Modified: trunk/SKThumbnailTableView.m
===================================================================
--- trunk/SKThumbnailTableView.m        2009-10-16 17:26:38 UTC (rev 5899)
+++ trunk/SKThumbnailTableView.m        2009-10-17 14:04:27 UTC (rev 5900)
@@ -125,6 +125,22 @@
     [self setNeedsDisplay:YES];
 }
 
+- (BOOL)becomeFirstResponder {
+    if ([super becomeFirstResponder]) {
+        [self setNeedsDisplay:YES];
+        return YES;
+    }
+    return NO;
+}
+
+- (BOOL)resignFirstResponder {
+    if ([super resignFirstResponder]) {
+        [self setNeedsDisplay:YES];
+        return YES;
+    }
+    return NO;
+}
+
 - (BOOL)isScrolling { return isScrolling; }
 
 - (void)handleScrollerWillScroll:(NSNotification *)note {

Modified: trunk/SKTocOutlineView.m
===================================================================
--- trunk/SKTocOutlineView.m    2009-10-16 17:26:38 UTC (rev 5899)
+++ trunk/SKTocOutlineView.m    2009-10-17 14:04:27 UTC (rev 5900)
@@ -104,6 +104,22 @@
     [self setNeedsDisplay:YES];
 }
 
+- (BOOL)becomeFirstResponder {
+    if ([super becomeFirstResponder]) {
+        [self setNeedsDisplay:YES];
+        return YES;
+    }
+    return NO;
+}
+
+- (BOOL)resignFirstResponder {
+    if ([super resignFirstResponder]) {
+        [self setNeedsDisplay:YES];
+        return YES;
+    }
+    return NO;
+}
+
 - (void)removeTrackingRects {
     if (trackingRects) {
         NSUInteger idx = [trackingRects count];


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to