• 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: Round Rect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Round Rect


  • Subject: Re: Round Rect
  • From: "John Buckley" <email@hidden>
  • Date: Wed, 29 Mar 2006 15:06:29 +0100

You mean a rect with round corners :)

Use an NSBezierPath and construct the points manually.

e.g. - appendBezierPathWithArcFromPoint: toPoint: radius:
can be used to construct the corners.

I would add a category on NSBezierPath to do the work in a single method.

John

On 29/03/06, Valerio Ferrucci <email@hidden> wrote:
> Hi,
> how can I draw a round rect in cocoa?
>
> Thanks
> ==================================================================
> Valerio Ferrucci                        Tabasoft Sas
> email@hidden                    http://www.tabasoft.it
>
>
>  _______________________________________________
> 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
>


--
------------------------
Dr. John Buckley
email@hidden

Mac OS X Tiger
------------------------
 _______________________________________________
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: Round Rect
      • From: Nicko van Someren <email@hidden>
References: 
 >Round Rect (From: Valerio Ferrucci <email@hidden>)

  • Prev by Date: Re: Call back from C++ code.
  • Next by Date: Re: Round Rect
  • Previous by thread: Round Rect
  • Next by thread: Re: Round Rect
  • Index(es):
    • Date
    • Thread