Re: Removing or ignoring "lineWidth" property of an NSBezierPath instance
Re: Removing or ignoring "lineWidth" property of an NSBezierPath instance
- Subject: Re: Removing or ignoring "lineWidth" property of an NSBezierPath instance
- From: Alastair Houghton <email@hidden>
- Date: Wed, 22 Apr 2009 23:27:57 +0100
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 (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