• 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: Bug in [path containsPoint]?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in [path containsPoint]?


  • Subject: Re: Bug in [path containsPoint]?
  • From: "Brian O'Brien" <email@hidden>
  • Date: Mon, 13 Jun 2005 10:55:21 -0600


On Jun 13, 2005, at 10:21 AM, Nicko van Someren wrote:

On 13 Jun 2005, at 17:13, Brian O'Brien wrote:
On Jun 3, 2005, at 5:38 PM, John C. Randolph wrote:
Are you sending -closePath, or just adding a path segment back to the first point?
I am not calling -closePath
This is what I do.

            NSBezierPath *path = [NSBezierPath bezierPath];
            [path appendBezierPathWithPoints:ptArray count:m];

If you don't close the path then there can be edge cases which look like what you are seeing. Until you close the path the system takes what you have as being an open path with the start and end points asymptotically close together. Try putting [path closePath]; after the code you have and see if the problem goes away.



I have and it doesn't help. Perhaps this is resolved in Tiger.

    Nicko



_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Bug in [path containsPoint]?
      • From: "Brian O'Brien" <email@hidden>
References: 
 >Bug in [path containsPoint]? (From: "Brian O'Brien" <email@hidden>)
 >Re: Bug in [path containsPoint]? (From: "John C. Randolph" <email@hidden>)
 >Re: Bug in [path containsPoint]? (From: "Brian O'Brien" <email@hidden>)
 >Re: Bug in [path containsPoint]? (From: Nicko van Someren <email@hidden>)

  • Prev by Date: Re: New Tiger NSDocument API's
  • Next by Date: Re: New Tiger NSDocument API's
  • Previous by thread: Re: Bug in [path containsPoint]?
  • Next by thread: Re: Bug in [path containsPoint]?
  • Index(es):
    • Date
    • Thread