aboutsummaryrefslogtreecommitdiff
path: root/AppKit/GTMNSBezierPath+CGPathTest.m
diff options
context:
space:
mode:
authorGravatar thomasvl <thomasvl@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2008-05-09 18:53:09 +0000
committerGravatar thomasvl <thomasvl@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2008-05-09 18:53:09 +0000
commitf90bcf3263b80b96754977ddbd5309704cf817fb (patch)
tree585db4c1126cea3bd0ff9b338628d33febe36e59 /AppKit/GTMNSBezierPath+CGPathTest.m
parente5c365c04b9f2f6d04b2c5bd828f39fab2882e7d (diff)
Flush out suppport for 64bit, GC support.
Added some more xcode configs related to the above. Removed some classes that the unittesting doesn't need (and aren't able to support 64bit). add base64, httpfetcher, and progress monitor stream.
Diffstat (limited to 'AppKit/GTMNSBezierPath+CGPathTest.m')
-rw-r--r--AppKit/GTMNSBezierPath+CGPathTest.m14
1 files changed, 7 insertions, 7 deletions
diff --git a/AppKit/GTMNSBezierPath+CGPathTest.m b/AppKit/GTMNSBezierPath+CGPathTest.m
index 3ca11c3..e22ee07 100644
--- a/AppKit/GTMNSBezierPath+CGPathTest.m
+++ b/AppKit/GTMNSBezierPath+CGPathTest.m
@@ -36,11 +36,11 @@
// Draws all of our tests so that we can compare this to our stored image file.
- (void)gtm_unitTestViewDrawRect:(NSRect)rect contextInfo:(void*)contextInfo{
NSBezierPath *thePath = [NSBezierPath bezierPath];
- NSPoint theStart = NSMakePoint(20.0f, 20.0f);
+ NSPoint theStart = NSMakePoint(20.0, 20.0);
// Test moveto/lineto
[thePath moveToPoint: theStart];
- for (unsigned int i = 0; i < 10; ++i) {
+ for (NSUInteger i = 0; i < 10; ++i) {
NSPoint theNewPoint = NSMakePoint(i * 5, i * 10);
[thePath lineToPoint: theNewPoint];
theNewPoint = NSMakePoint(i * 2, i * 6);
@@ -48,11 +48,11 @@
}
// Test moveto/curveto
- for (unsigned int i = 0; i < 10; ++i) {
- NSPoint startPoint = NSMakePoint(5.0f, 50.0f);
- NSPoint endPoint = NSMakePoint(55.0f, 50.0f);
- NSPoint controlPoint1 = NSMakePoint(17.5f, 50.0f + 5.0f * i);
- NSPoint controlPoint2 = NSMakePoint(42.5f, 50.0f - 5.0f * i);
+ for (NSUInteger i = 0; i < 10; ++i) {
+ NSPoint startPoint = NSMakePoint(5.0, 50.0);
+ NSPoint endPoint = NSMakePoint(55.0, 50.0);
+ NSPoint controlPoint1 = NSMakePoint(17.5, 50.0 + 5.0 * i);
+ NSPoint controlPoint2 = NSMakePoint(42.5, 50.0 - 5.0 * i);
[thePath moveToPoint:startPoint];
[thePath curveToPoint:endPoint controlPoint1:controlPoint1 controlPoint2:controlPoint2];
}