• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Inviting to comment on Cocoa categories
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Inviting to comment on Cocoa categories
      • From: "Kyle Sluder" <email@hidden>
    • Re: Inviting to comment on Cocoa categories
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: NSArrayController, bindings and NSUserDefaults
  • Next by Date: Re: NSArrayController, bindings and NSUserDefaults
  • Previous by thread: Re: NSArrayController, bindings and NSUserDefaults
  • Next by thread: Re: Inviting to comment on Cocoa categories
  • Index(es):
    • Date
    • Thread