On 22 Apr 2009, at 22:19, Tobias Zimmerman wrote:

First, the documentation for NSBezierPath’s -(CGFloat)lineWidth method
states that: "If no value was set explicitly for the receiver, this method
returns the default line width."  This suggests that a newly created
NSBezierPath should have no value set for lineWidth.

I think it means that it behaves exactly how your code demonstrates that it does. By which I mean that when you create an NSBezierPath, the initial lineWidth is whatever the default was set to at the time of creation.

I don't think any other behaviour is very likely, especially given that, as you correctly point out, doing something else would mean either reserving some special value or adding an extra flag to every NSBezierPath.

Kind regards,

Alastair.

--
http://alastairs-place.net



_______________________________________________

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 arch...@mail-archive.com

Reply via email to