Revision: 3102
http://skim-app.svn.sourceforge.net/skim-app/?rev=3102&view=rev
Author: hofman
Date: 2007-10-30 11:59:24 -0700 (Tue, 30 Oct 2007)
Log Message:
-----------
Define macro for Tiger AppKit version.
Modified Paths:
--------------
trunk/CIImage_BDSKExtensions.m
trunk/SKPDFAnnotationNote.m
trunk/Skim_Prefix.pch
Modified: trunk/CIImage_BDSKExtensions.m
===================================================================
--- trunk/CIImage_BDSKExtensions.m 2007-10-30 18:46:49 UTC (rev 3101)
+++ trunk/CIImage_BDSKExtensions.m 2007-10-30 18:59:24 UTC (rev 3102)
@@ -45,7 +45,7 @@
static NSString *endColorKey = nil;
+ (void)initialize {
- if (floor(NSAppKitVersionNumber) <= 824) {
+ if (floor(NSAppKitVersionNumber) <= NSAppKitVersionNumber10_4) {
// in Tiger the input colors are reversed
startColorKey = [@"inputColor1" retain];
endColorKey = [@"inputColor0" retain];
Modified: trunk/SKPDFAnnotationNote.m
===================================================================
--- trunk/SKPDFAnnotationNote.m 2007-10-30 18:46:49 UTC (rev 3101)
+++ trunk/SKPDFAnnotationNote.m 2007-10-30 18:59:24 UTC (rev 3102)
@@ -1045,12 +1045,12 @@
// fix a bug in PDFKit, the color space sometimes is not correct
- (void)drawWithBox:(CGPDFBox)box inContext:(CGContextRef)context {
- if (floor(NSAppKitVersionNumber) <= 824) {
+ if (floor(NSAppKitVersionNumber) <= NSAppKitVersionNumber10_4) {
CGContextSaveGState(context);
SKCGContextSetDefaultRGBColorSpace(context);
}
[super drawWithBox:box inContext:context];
- if (floor(NSAppKitVersionNumber) <= 824) {
+ if (floor(NSAppKitVersionNumber) <= NSAppKitVersionNumber10_4) {
CGContextRestoreGState(context);
}
}
Modified: trunk/Skim_Prefix.pch
===================================================================
--- trunk/Skim_Prefix.pch 2007-10-30 18:46:49 UTC (rev 3101)
+++ trunk/Skim_Prefix.pch 2007-10-30 18:59:24 UTC (rev 3102)
@@ -8,6 +8,10 @@
#import <objc/objc-class.h>
#import <Quartz/Quartz.h>
+ #ifndef NSAppKitVersionNumber10_4
+ #define NSAppKitVersionNumber10_4 824
+ #endif
+
#define __SKFILENAMEASNSSTRING \
[[NSString stringWithCString:__FILE__] lastPathComponent]
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: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit