Ah yes, that's right. Well I wrote a workaround for this very specific
situation for my own iPhone app:
void SDPathAddRoundedRect(CGMutablePathRef path, CGRect rect, CGFloat radius
) {
CGFloat left = rect.origin.x, top = rect.origin.y, width =
rect.size.width, height = rect.size.height;
CGPathMoveToPoint(path, NULL, left, top + radius);
CGPathAddArcToPoint(path, NULL, left, top, left + radius, top,
radius);
CGPathAddLineToPoint(path, NULL, left + width - radius, top);
CGPathAddArcToPoint(path, NULL, left + width, top, left + width, top
+ radius, radius);
CGPathAddLineToPoint(path, NULL, left + width, top + height - radius
);
CGPathAddArcToPoint(path, NULL, left + width, top + height, left +
width - radius, top + height, radius);
CGPathAddLineToPoint(path, NULL, left + radius, top + height);
CGPathAddArcToPoint(path, NULL, left, top + height, left, top +
height - radius, radius);
CGPathCloseSubpath(path);
}
On Sun, Oct 12, 2008 at 12:14 PM, Dave DeLong <[EMAIL PROTECTED]> wrote:
> Unfortunately, NSBezierPath does not exist on the iPhone.
>
> Dave
>
> On 12 Oct, 2008, at 10:50 AM, Steven Degutis wrote:
>
> Finally, if you want to get fancy drawing boxes with rounded corners, have
>> a look at
>> NSBezierPath.
>>
> _______________________________________________
>
> Cocoa-dev mailing list ([email protected])
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/steven.degutis%40gmail.com
>
> This email sent to [EMAIL PROTECTED]
>
--
Steven Degutis
_______________________________________________
Cocoa-dev mailing list ([email protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]