• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Removing or ignoring "lineWidth" property of an NSBezierPath instance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Removing or ignoring "lineWidth" property of an NSBezierPath instance (From: Tobias Zimmerman <email@hidden>)

  • Prev by Date: Re: file extensions and Mime Type
  • Next by Date: Re: objc_exception_throw prior to launching nib file
  • Previous by thread: Removing or ignoring "lineWidth" property of an NSBezierPath instance
  • Next by thread: Re: Removing or ignoring "lineWidth" property of an NSBezierPath instance
  • Index(es):
    • Date
    • Thread