• 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: Dynamically update drawRect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dynamically update drawRect


  • Subject: Re: Dynamically update drawRect
  • From: Gideon King <email@hidden>
  • Date: Sun, 27 Dec 2009 07:58:23 +1000

DrawRect is not called directly by you - instead, you use setNeedsDisplayInRect: and setNeedsDisplay: to tell the system the dirty rect to redraw, and those rects are combined before the system locks focus on your view and calls drawRect:/ You therefore can't pass information to your drawing method - you have to use the state information you set in your program to work out how to draw the rects you need to draw.

HTH

Gideon

> I have two classes. One for internet connection(program logic) and one to
> display graphics(i posted code). And i want to call drawRect from another
> class and pass some data to drawRect method. Seems like drawRect method is
> just for static graphics. Does there's any possibility to do it ? Any
> examples ?
>
_______________________________________________

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

  • Follow-Ups:
    • Re: Dynamically update drawRect
      • From: Quincey Morris <email@hidden>
References: 
 >Dynamically update drawRect (From: proger proger <email@hidden>)

  • Prev by Date: Re: n00b Q re: AppController
  • Next by Date: dragging to trash folder problems
  • Previous by thread: Dynamically update drawRect
  • Next by thread: Re: Dynamically update drawRect
  • Index(es):
    • Date
    • Thread