aboutsummaryrefslogtreecommitdiff
path: root/AppKit/GTMNSBezierPath+CGPathTest.m
diff options
context:
space:
mode:
authorGravatar thomasvl@gmail.com <thomasvl@gmail.com@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2009-03-05 21:30:41 +0000
committerGravatar thomasvl@gmail.com <thomasvl@gmail.com@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2009-03-05 21:30:41 +0000
commitfee6778710c82dfbee04ab23061a96d324facfdb (patch)
treefb758101d689d4b2e9ce66aeddfd48ebc05f9232 /AppKit/GTMNSBezierPath+CGPathTest.m
parent32d00b320d12706ead14baad04f11cec2823df77 (diff)
- Changed gtm_createCGPath to gtm_cgPath in GTMNSBezier+CGPath. The path
returned is now autoreleased so you don't need to worry about releasing it. - Made some changes to the GTMNSObject+UnitTesting APIs. Specifically renamed gtm_createUnitTestImage to gtm_unitTestImage. The value it returns is now autoreleased, so no need to release it. Also change gtm_createUnitTestBitmapOfSize:withData: to a C function. - Cleaned up GTM so that it passes the Clang checker without any warnings.
Diffstat (limited to 'AppKit/GTMNSBezierPath+CGPathTest.m')
-rw-r--r--AppKit/GTMNSBezierPath+CGPathTest.m5
1 files changed, 2 insertions, 3 deletions
diff --git a/AppKit/GTMNSBezierPath+CGPathTest.m b/AppKit/GTMNSBezierPath+CGPathTest.m
index eb86353..3c99a19 100644
--- a/AppKit/GTMNSBezierPath+CGPathTest.m
+++ b/AppKit/GTMNSBezierPath+CGPathTest.m
@@ -28,7 +28,7 @@
@implementation GTMNSBezierPath_CGPathTest
-- (void)testCreateCGPath {
+- (void)testCGPath {
GTMAssertDrawingEqualToImageNamed(self,
NSMakeSize(100, 100),
@"GTMNSBezierPath+CGPathTest",
@@ -62,7 +62,7 @@
// test close
[thePath closePath];
- CGPathRef cgPath = [thePath gtm_createCGPath];
+ CGPathRef cgPath = [thePath gtm_CGPath];
STAssertNotNULL(cgPath, @"Nil CGPath");
CGContextRef cgContext = [[NSGraphicsContext currentContext] graphicsPort];
@@ -70,7 +70,6 @@
CGContextAddPath(cgContext, cgPath);
CGContextStrokePath(cgContext);
- CGPathRelease(cgPath);
}
@end