Re: Dynamically update drawRect
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