Revision: 4842
          http://skim-app.svn.sourceforge.net/skim-app/?rev=4842&view=rev
Author:   hofman
Date:     2008-10-21 10:11:47 +0000 (Tue, 21 Oct 2008)

Log Message:
-----------
remove separate accessor for highlightColor of tables

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

Modified: trunk/SKThumbnailTableView.m
===================================================================
--- trunk/SKThumbnailTableView.m        2008-10-21 10:05:40 UTC (rev 4841)
+++ trunk/SKThumbnailTableView.m        2008-10-21 10:11:47 UTC (rev 4842)
@@ -74,18 +74,16 @@
     return [NSColor tableBackgroundColor];
 }
 
-- (NSColor *)highlightColor {
-    if ([[self window] isKeyWindow] && [[self window] firstResponder] == self)
-        return [NSColor alternateSelectedControlColor];
-    else
-        return [NSColor secondarySelectedTableColor];
-}
-
 - (void)highlightSelectionInClipRect:(NSRect)clipRect {
-    NSColor *color = [self highlightColor];
+    NSColor *color;
     int row;
     NSRect rect;
     
+    if ([[self window] isKeyWindow] && [[self window] firstResponder] == self)
+        color = [NSColor alternateSelectedControlColor];
+    else
+        color = [NSColor secondarySelectedTableColor];
+    
     [NSGraphicsContext saveGraphicsState];
     
     if ([[self delegate] 
respondsToSelector:@selector(tableViewHighlightedRows:)]) {

Modified: trunk/SKTocOutlineView.m
===================================================================
--- trunk/SKTocOutlineView.m    2008-10-21 10:05:40 UTC (rev 4841)
+++ trunk/SKTocOutlineView.m    2008-10-21 10:11:47 UTC (rev 4842)
@@ -60,18 +60,16 @@
     return [NSColor tableBackgroundColor];
 }
 
-- (NSColor *)highlightColor {
-    if ([[self window] isKeyWindow] && [[self window] firstResponder] == self)
-        return [NSColor alternateSelectedControlColor];
-    else
-        return [NSColor secondarySelectedTableColor];
-}
-
 - (void)highlightSelectionInClipRect:(NSRect)clipRect {
-    NSColor *color = [self highlightColor];
+    NSColor *color;
     int row;
     NSRect rect;
     
+    if ([[self window] isKeyWindow] && [[self window] firstResponder] == self)
+        color = [NSColor alternateSelectedControlColor];
+    else
+        color = [NSColor secondarySelectedTableColor];
+    
     [NSGraphicsContext saveGraphicsState];
     
     if ([[self delegate] 
respondsToSelector:@selector(outlineViewHighlightedRows:)]) {


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

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to