• 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: Strange issue in stroking a bezier path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange issue in stroking a bezier path


  • Subject: Re: Strange issue in stroking a bezier path
  • From: Peter Teeson <email@hidden>
  • Date: Sat, 05 May 2012 15:46:16 -0400

On 2012-05-05, at 11:29 AM, Andy Lee wrote:
> On May 5, 2012, at 10:41 AM, Peter Teeson wrote:
>> Thanks so much Ken for that help. I am using NSInsetRect later on in my actual code for something else
>> But I did not realize that the bounds stroke was straddling the view content edges.
>> How did you learn that?
>
> The docs mention it, though it's understandable that you didn't think to look for it since it *looked* like a hardware issue.
>
> <https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/nsbezierpath_Class/Reference/Reference.html#//apple_ref/doc/uid/20000339-CHDECDGE>
>> The drawn line is centered on the path with its sides parallel to the path segment. This method uses the current drawing attributes associated with the receiver.
>
> --Andy
Thanks Andy. I should have looked up NSBezierPath using AppKiDo and looked at -stroke.
But I thought I knew what a Bezier was so just found a suitable method for my test.
Never gave a thought to how -stroke works.

Thanks so much for helping me.

respect….

Peter

P.S. You can learn something new every day unless you are very careful. ;}


_______________________________________________

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: 
 >Strange issue in stroking a bezier path (From: Peter Teeson <email@hidden>)
 >Re: Strange issue in stroking a bezier path (From: Ken Thomases <email@hidden>)
 >Re: Strange issue in stroking a bezier path (From: Peter Teeson <email@hidden>)
 >Re: Strange issue in stroking a bezier path (From: Andy Lee <email@hidden>)

  • Prev by Date: -[NSApp orderOut:] leaves custom sheet in -orderedWindows
  • Next by Date: Re: Strange issue in stroking a bezier path
  • Previous by thread: Re: Strange issue in stroking a bezier path
  • Next by thread: Re: Strange issue in stroking a bezier path
  • Index(es):
    • Date
    • Thread