// // MGMAddons.m // Exhaust // // Created by Mr. Gecko on 2/8/11. // Copyright (c) 2011 Mr. Gecko's Media (James Coleman). All rights reserved. http://mrgeckosmedia.com/ // #import "MGMAddons.h" #import @implementation NSBezierPath (MGMAddons) + (NSBezierPath *)pathWithRect:(NSRect)theRect radiusX:(float)theRadiusX radiusY:(float)theRadiusY { NSBezierPath *path = [NSBezierPath bezierPath]; float maxRadiusX = theRect.size.width / 2.0; float maxRadiusY = theRect.size.height / 2.0; theRadiusX = (theRadiusX