Am 02.04.2008 um 01:05 schrieb Graham Cox:
As I said, it says nothing about how it's implemented. Chances are,
it will avoid creation of an unnecessary NSBezierPath object, but
relying on that being the case is folly.
On 2 Apr 2008, at 2:23 am, Matthew Whillock wrote:
The class reference has this to say about it:
Strokes a line between two points using the current stroke color
and the default drawing attributes.
+ (void)strokeLineFromPoint:(NSPoint)point1 toPoint:(NSPoint)point2
So it will just draw a line.
Cheers,
Matt
Are you sure? This could be just a convenient interface for
creating a
bezier object with the points passed, stroking it and releasing or
autoreleasing it. The docs say nothing about how it's implemented.
I've done a FPS benchmark recently and can confirm it is significantly
faster. This indicates it is implemented in a more efficient way.
Andre
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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]