Revision: 5680
http://skim-app.svn.sourceforge.net/skim-app/?rev=5680&view=rev
Author: hofman
Date: 2009-09-04 22:50:52 +0000 (Fri, 04 Sep 2009)
Log Message:
-----------
use IOPMAssertionCreate because IOPMAssertionCreateWithName is not declared on
10.5, even though it should be supported according to the docs
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2009-09-04 21:57:00 UTC (rev 5679)
+++ trunk/SKMainWindowController.m 2009-09-04 22:50:52 UTC (rev 5680)
@@ -152,9 +152,6 @@
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)
- (void)applyLeftSideWidth:(CGFloat)leftSideWidth
rightSideWidth:(CGFloat)rightSideWidth;
@@ -1477,7 +1474,7 @@
[notesPdfView goToPage:[[notesPdfView document] pageAtIndex:[[pdfView
currentPage] pageIndex]]];
// prevent sleep
- if (activityAssertionID == kIOPMNullAssertionID && kIOReturnSuccess !=
IOPMAssertionCreateWithName(kIOPMAssertionTypeNoDisplaySleep,
kIOPMAssertionLevelOn, CFSTR("Skim Presentation"), &activityAssertionID))
+ if (activityAssertionID == kIOPMNullAssertionID && kIOReturnSuccess !=
IOPMAssertionCreate(kIOPMAssertionTypeNoDisplaySleep, kIOPMAssertionLevelOn,
&activityAssertionID))
activityAssertionID = kIOPMNullAssertionID;
mwcFlags.isPresentation = 1;
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