Revision: 5911
http://skim-app.svn.sourceforge.net/skim-app/?rev=5911&view=rev
Author: hofman
Date: 2009-10-19 14:18:49 +0000 (Mon, 19 Oct 2009)
Log Message:
-----------
use pointer typedef
Modified Paths:
--------------
trunk/PDFAnnotationMarkup_SKExtensions.m
trunk/SKSnapshotWindowController.m
trunk/SKStatusBar.m
Modified: trunk/PDFAnnotationMarkup_SKExtensions.m
===================================================================
--- trunk/PDFAnnotationMarkup_SKExtensions.m 2009-10-19 14:15:26 UTC (rev
5910)
+++ trunk/PDFAnnotationMarkup_SKExtensions.m 2009-10-19 14:18:49 UTC (rev
5911)
@@ -199,7 +199,7 @@
NSPointerArray *lines = [self lineRects];
iMax = [lines count];
for (i = 0; i < iMax; i++) {
- NSArray *quadLine =
createQuadPointsWithBounds(*(NSRect *)[lines pointerAtIndex:i], [self
bounds].origin, rotation);
+ NSArray *quadLine =
createQuadPointsWithBounds(*(NSRectPointer)[lines pointerAtIndex:i], [self
bounds].origin, rotation);
[quadPoints addObjectsFromArray:quadLine];
[quadLine release];
}
@@ -271,7 +271,7 @@
for (i = 0; i < iMax; i++) {
// slightly outset the rect to avoid rounding errors, as
selectionForRect is pretty strict
- if ((sel = [[self page] selectionForRect:NSInsetRect(*(NSRect *)[lines
pointerAtIndex:i], -1.0, -1.0)]) && [sel hasCharacters]) {
+ if ((sel = [[self page]
selectionForRect:NSInsetRect(*(NSRectPointer)[lines pointerAtIndex:i], -1.0,
-1.0)]) && [sel hasCharacters]) {
if (selection == nil)
selection = sel;
else
@@ -295,7 +295,7 @@
BOOL isContained = NO;
while (i-- && NO == isContained)
- isContained = NSPointInRect(point, *(NSRect *)[lines
pointerAtIndex:i]);
+ isContained = NSPointInRect(point, *(NSRectPointer)[lines
pointerAtIndex:i]);
return isContained;
}
Modified: trunk/SKSnapshotWindowController.m
===================================================================
--- trunk/SKSnapshotWindowController.m 2009-10-19 14:15:26 UTC (rev 5910)
+++ trunk/SKSnapshotWindowController.m 2009-10-19 14:18:49 UTC (rev 5911)
@@ -495,7 +495,7 @@
#pragma mark Miniaturize / Deminiaturize
-- (void)getMiniRect:(NSRect *)miniRect maxiRect:(NSRect *)maxiRect
forDockingRect:(NSRect)dockRect {
+- (void)getMiniRect:(NSRectPointer)miniRect maxiRect:(NSRectPointer)maxiRect
forDockingRect:(NSRect)dockRect {
NSView *clipView = [[[pdfView documentView] enclosingScrollView]
contentView];
NSRect clipRect = [pdfView convertRect:[clipView bounds]
fromView:clipView];
CGFloat thumbRatio = NSHeight(clipRect) / NSWidth(clipRect);
Modified: trunk/SKStatusBar.m
===================================================================
--- trunk/SKStatusBar.m 2009-10-19 14:15:26 UTC (rev 5910)
+++ trunk/SKStatusBar.m 2009-10-19 14:18:49 UTC (rev 5911)
@@ -104,7 +104,7 @@
- (BOOL)isFlipped { return NO; }
-- (void)getLeftFrame:(NSRect *)leftFrame rightFrame:(NSRect *)rightFrame {
+- (void)getLeftFrame:(NSRectPointer)leftFrame
rightFrame:(NSRectPointer)rightFrame {
CGFloat leftWidth = [[leftCell stringValue] length] ? [leftCell
cellSize].width : 0.0;
CGFloat rightWidth = [[rightCell stringValue] length] ? [rightCell
cellSize].width : 0.0;
NSRect ignored, rect = [self bounds];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) 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/devconference
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit