Revision: 6719
http://skim-app.svn.sourceforge.net/skim-app/?rev=6719&view=rev
Author: hofman
Date: 2010-08-19 20:24:32 +0000 (Thu, 19 Aug 2010)
Log Message:
-----------
autorelease version numbers
Modified Paths:
--------------
trunk/PDFAnnotation_SKExtensions.m
Modified: trunk/PDFAnnotation_SKExtensions.m
===================================================================
--- trunk/PDFAnnotation_SKExtensions.m 2010-08-19 17:51:02 UTC (rev 6718)
+++ trunk/PDFAnnotation_SKExtensions.m 2010-08-19 20:24:32 UTC (rev 6719)
@@ -101,9 +101,9 @@
+ (void)checkPDFKit {
// Some PDFAnnotation subclasses over-retain the initial PDFBorder ivar,
at least on PDFKit version 2.5 (MacOSX 10.6.0-2) and 2.5.1 (MacOSX 10.6.3-4)
- SKVersionNumber *PDFKitVersion = [[SKVersionNumber alloc]
initWithVersionString:[[NSBundle bundleForClass:self]
objectForInfoDictionaryKey:(NSString *)kCFBundleVersionKey]];
- SKVersionNumber *minVersion = [[SKVersionNumber alloc]
initWithVersionString:@"2.5"];
- SKVersionNumber *maxVersion = [[SKVersionNumber alloc]
initWithVersionString:@"2.5.1"];
+ SKVersionNumber *PDFKitVersion = [[[SKVersionNumber alloc]
initWithVersionString:[[NSBundle bundleForClass:self]
objectForInfoDictionaryKey:(NSString *)kCFBundleVersionKey]] autorelease];
+ SKVersionNumber *minVersion = [[[SKVersionNumber alloc]
initWithVersionString:@"2.5"] autorelease];
+ SKVersionNumber *maxVersion = [[[SKVersionNumber alloc]
initWithVersionString:@"2.5.1"] autorelease];
if ([PDFKitVersion compareToVersionNumber:minVersion] !=
NSOrderedAscending && [PDFKitVersion compareToVersionNumber:maxVersion] !=
NSOrderedDescending)
SKPDFAnnotationLeaksBorder = YES;
}
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
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit