Inviting to comment on Cocoa categories
Inviting to comment on Cocoa categories
- Subject: Inviting to comment on Cocoa categories
- From: Tommy Nordgren <email@hidden>
- Date: Sun, 9 Nov 2008 19:47:39 +0100
Attachment:
TN+NSAffineTransform.h
Description: Binary data
Attachment:
TN+NSBezierPath.h
Description: Binary data
Attachment:
TN+NSAffineTransform.m
Description: Binary data
Attachment:
TN+NSBezierPath.m
Description: Binary data
I would like comments on the following Categories on NSBezierPath and
NSAffineTransform.
In particular I would like comments on other suitable methods to be
added, and alternate protocols
to set up input data.
I'm not including the code in the body of the message,but as
Attachments.
//
// TN+NSAffineTransform.h
// GraphicsUtilities
//
// Created by Tommy Nordgren (email@hidden http://www.tommynordgren.com
) on 2008-11-09.
// Copyright 2008 Tommy Nordgren. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface NSAffineTransform (TNGraphics)
+(NSAffineTransform *) transformRotatedAroundPoint:(NSPoint) p degrees:
(CGFloat) deg;
+(NSAffineTransform *) transformRotatedAroundPoint:(NSPoint) p radians:
(CGFloat) rad;
+(NSAffineTransform *) transformByTranslatingOriginToPoint:(NSPoint) p;
@end
//
// TN+NSBezierPath.h
// GraphicsUtilities
//
// Created by Tommy Nordgren (email@hidden http://www.tommynordgren.com
) on 2008-11-09.
// Copyright 2008 Tommy Nordgren. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface NSBezierPath (TNGraphics)
+(NSBezierPath *) bezierPathWithOvalInRectOfWidth:(CGFloat) w height:
(CGFloat) h centeredAt:(NSPoint) p rotatedByDegrees:(CGFloat) d;
+(NSBezierPath *) bezierPathWithOvalInRectOfWidth:(CGFloat) w height:
(CGFloat) h centeredAt:(NSPoint) p rotatedByRadians:(CGFloat) r;
+(NSBezierPath *) bezierPathWithRectOfWidth:(CGFloat) w height:
(CGFloat) h centeredAt:(NSPoint) p rotatedByDegrees:(CGFloat) d;
+(NSBezierPath *) bezierPathWithRectOfWidth:(CGFloat) w height:
(CGFloat) h centeredAt:(NSPoint) p rotatedByRadians:(CGFloat) r;
@end
-----------------------------------
See the amazing new SF reel: Invasion of the man eating cucumbers from
outer space.
On congratulations for a fantastic parody, the producer replies :
"What parody?"
Tommy Nordgren
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden