Revision: 5664
http://skim-app.svn.sourceforge.net/skim-app/?rev=5664&view=rev
Author: hofman
Date: 2009-09-04 14:03:31 +0000 (Fri, 04 Sep 2009)
Log Message:
-----------
remove unused method and declare function that's somehow not included in the SDK
Modified Paths:
--------------
trunk/PDFAnnotationMarkup_SKExtensions.m
trunk/SKMainWindowController.m
Modified: trunk/PDFAnnotationMarkup_SKExtensions.m
===================================================================
--- trunk/PDFAnnotationMarkup_SKExtensions.m 2009-09-04 11:32:35 UTC (rev
5663)
+++ trunk/PDFAnnotationMarkup_SKExtensions.m 2009-09-04 14:03:31 UTC (rev
5664)
@@ -168,23 +168,6 @@
return self;
}
-static BOOL adjacentCharacterBounds(NSRect rect1, NSRect rect2) {
- CGFloat w = SKMax(NSWidth(rect2), NSWidth(rect1));
- CGFloat h = SKMax(NSHeight(rect2), NSHeight(rect1));
- // first check the vertical position; allow sub/superscripts
- if (SKAbs(NSMinY(rect1) - NSMinY(rect2)) > 0.2 * h && SKAbs(NSMaxY(rect1)
- NSMaxY(rect2)) > 0.2 * h)
- return NO;
- // compare horizontal position
- // rect1 before rect2
- if (NSMinX(rect1) < NSMinX(rect2))
- return NSMinX(rect2) - NSMaxX(rect1) < 1.2 * w;
- // rect1 after rect2
- if (NSMaxX(rect1) > NSMaxX(rect2))
- return NSMinX(rect1) - NSMaxX(rect2) < 1.2 * w;
- // rect1 on top of rect2
- return YES;
-}
-
- (id)initSkimNoteWithSelection:(PDFSelection *)selection
markupType:(NSInteger)type {
NSRect bounds = [[selection pages] count] ? [selection
boundsForPage:[[selection pages] objectAtIndex:0]] : NSZeroRect;
if (selection == nil || NSIsEmptyRect(bounds)) {
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2009-09-04 11:32:35 UTC (rev 5663)
+++ trunk/SKMainWindowController.m 2009-09-04 14:03:31 UTC (rev 5664)
@@ -152,6 +152,8 @@
NSString *SKUnarchiveFromDataArrayTransformerName =
@"SKUnarchiveFromDataArrayTransformer";
+// this is defined on 10.5, however it's not included in the 10.5 SDK
+IOReturn IOPMAssertionCreateWithName(CFStringRef AssertionType,
IOPMAssertionLevel AssertionLevel, CFStringRef AssertionName, IOPMAssertionID
*AssertionID) AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER;
@interface SKMainWindowController (SKPrivate)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit