• 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: drawing rects at runtime
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: drawing rects at runtime


  • Subject: Re: drawing rects at runtime
  • From: Shawn Erickson <email@hidden>
  • Date: Mon, 19 Dec 2005 13:18:44 -0800

On 12/19/05, Uli Kusterer <email@hidden> wrote:
>
> Am 19.12.2005 um 13:19 schrieb Harmanpreet Bachal:
> > i have a window on which i can add any view. My problem is that
> > at runtime i get to know of a number and depending on this number
> > (say 5) i have to draw as many rectangles (one beside the other) in
> > the window so as to form a pictoral representation.
> > Any help anybody.
>
> Check out the docs for NSBezierPath. That's what you use in Cocoa to
> draw rectangles.

Or use the NSRectFill and NSFrameRect family of functions if all you
need are simple rectangles framed or filled.

-Shawn
_______________________________________________
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: 
 >drawing rects at runtime (From: Harmanpreet Bachal <email@hidden>)
 >Re: drawing rects at runtime (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Re: NSBundle dynamic loading problem
  • Next by Date: Moire X v2.0 released, feedback would be appreciated
  • Previous by thread: Re: drawing rects at runtime
  • Next by thread: NSWindowDidBecomeKeyNotification equivalent for NSView?
  • Index(es):
    • Date
    • Thread