Revision: 18082
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18082&view=rev
Author: hofman
Date: 2011-08-22 11:34:56 +0000 (Mon, 22 Aug 2011)
Log Message:
-----------
use fixed default background color on Lion, because there are redrawing
problems with the source list gradient when scrolling
Modified Paths:
--------------
trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
trunk/bibdesk_vendorsrc/amaxwell/FileView/FileView_Prefix.pch
Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m 2011-08-22
10:08:53 UTC (rev 18081)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m 2011-08-22
11:34:56 UTC (rev 18082)
@@ -234,11 +234,15 @@
NSColor *color = nil;
// Magic source list color:
http://lists.apple.com/archives/cocoa-dev/2008/Jun/msg02138.html
- if ([NSOutlineView
instancesRespondToSelector:@selector(setSelectionHighlightStyle:)]) {
+ if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_6) {
+ CGFloat red = 0.863772, green = 0.892659, blue = 0.919963;
+ color = [NSColor colorWithDeviceRed:red green:green blue:blue
alpha:1.0];
+ } else if ([NSOutlineView
instancesRespondToSelector:@selector(setSelectionHighlightStyle:)]) {
NSOutlineView *outlineView = [[NSOutlineView alloc]
initWithFrame:NSMakeRect(0,0,1,1)];
[outlineView
setSelectionHighlightStyle:NSTableViewSelectionHighlightStyleSourceList];
color = [[[outlineView backgroundColor] retain] autorelease];
[outlineView release];
+ NSLog(@"%@",[color colorUsingColorSpaceName:NSDeviceRGBColorSpace]);
}
else {
// from Mail.app on 10.4
Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FileView_Prefix.pch
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FileView_Prefix.pch
2011-08-22 10:08:53 UTC (rev 18081)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FileView_Prefix.pch
2011-08-22 11:34:56 UTC (rev 18082)
@@ -39,6 +39,14 @@
#define NSAppKitVersionNumber10_4 824
#endif
+#ifndef NSAppKitVersionNumber10_5
+#define NSAppKitVersionNumber10_5 949
+#endif
+
+#ifndef NSAppKitVersionNumber10_6
+#define NSAppKitVersionNumber10_6 1038
+#endif
+
#ifndef DEBUG
#if !defined(NS_BLOCK_ASSERTIONS)
#define NS_BLOCK_ASSERTIONS 1
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model
configuration take the hassle out of deploying and managing Subversion and
the tools developers use with it. Learn more about uberSVN and get a free
download at: http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit