• 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: Problems drawing... Need help please.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems drawing... Need help please.


  • Subject: Re: Problems drawing... Need help please.
  • From: Sherm Pendley <email@hidden>
  • Date: Sun, 23 Oct 2005 22:29:43 -0400

On Oct 23, 2005, at 7:48 PM, Brian O'Brien wrote:

but it seems like the line caps and miters aren't working....
Also when an object is outlined... are the lines outside of the bounding box?

Dunno about that. But for the caps & miters, see below.

On Oct 23, 2005, at 4:57 PM, Brian O'Brien wrote:

I basically want to set a color, draw a path then on to the next object to be drawn...
Seems like every thing is being drawn in one color only...


            self.path.setLineJoinStyle_(NSMiterLineJoinStyle)
            self.path.setLineCapStyle_(NSButtLineCapStyle)

Here, you've set the cap & miter style for self.path.

                    r = NSRect((pt.x-1, pt.y-1), (3, 3))
                    p = NSBezierPath.bezierPathWithRect_(r)
                    p.closePath()
                    p.fill()
                    p.stroke()

But here you create p, which is a new instance of NSBezierPath that's unrelated to self.path. You haven't set the cap & miter style for p, so it draws with the default styles.


sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org

_______________________________________________
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


References: 
 >Problems drawing... Need help please. (From: "Brian O'Brien" <email@hidden>)
 >Re: Problems drawing... Need help please. (From: Sherm Pendley <email@hidden>)
 >Re: Problems drawing... Need help please. (From: "Brian O'Brien" <email@hidden>)

  • Prev by Date: Re: Saving the rows order of a table view
  • Next by Date: Re: Killing a daemon process
  • Previous by thread: Re: Problems drawing... Need help please.
  • Next by thread: Predicates to filter one array controller based on content from the other
  • Index(es):
    • Date
    • Thread