how to redraw a view
how to redraw a view
- Subject: how to redraw a view
- From: Artemiy Pavlov <email@hidden>
- Date: Wed, 24 Nov 2010 19:50:01 +0200
Hi all!
I have a view whose drawRect method draws a plot according to a few
parameters which are global variables. When I change these variables
according to the user input, I want to update that plot, so I need the
drawRect method of my view to be called. I tried [self
setNeedsDisplay] or [MyView setNeedsDisplay] but this doesn't work.
So my question is, what is the correct way to ask my view to be redrawn?
Thanks and best wishes,
Artemiy.
_______________________________________________
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