Revision: 5797
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5797&view=rev
Author:   hofman
Date:     2009-09-23 12:20:21 +0000 (Wed, 23 Sep 2009)

Log Message:
-----------
#define NSAppKitVersionNumber10_6 if not defined

Modified Paths:
--------------
    trunk/SKCompatibility.h
    trunk/SKPDFPage.m

Modified: trunk/SKCompatibility.h
===================================================================
--- trunk/SKCompatibility.h     2009-09-23 12:09:36 UTC (rev 5796)
+++ trunk/SKCompatibility.h     2009-09-23 12:20:21 UTC (rev 5797)
@@ -63,3 +63,7 @@
 #ifndef NSAppKitVersionNumber10_5
     #define NSAppKitVersionNumber10_5 949
 #endif
+
+#ifndef NSAppKitVersionNumber10_6
+    #define NSAppKitVersionNumber10_6 1038
+#endif

Modified: trunk/SKPDFPage.m
===================================================================
--- trunk/SKPDFPage.m   2009-09-23 12:09:36 UTC (rev 5796)
+++ trunk/SKPDFPage.m   2009-09-23 12:20:21 UTC (rev 5797)
@@ -115,7 +115,7 @@
 
 - (NSAttributedString *)attributedString {
     // on 10.6 the attributedstring is over-released by one
-    if ((NSInteger)floor(NSAppKitVersionNumber) == 1038)
+    if ((NSInteger)floor(NSAppKitVersionNumber) == NSAppKitVersionNumber10_6)
         return [[super attributedString] retain];
     return [super attributedString];
 }


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

------------------------------------------------------------------------------
Come build with us! The BlackBerry® 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/devconf
_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to