Re: how to redraw a view
Re: how to redraw a view
- Subject: Re: how to redraw a view
- From: Artemiy Pavlov <email@hidden>
- Date: Fri, 26 Nov 2010 17:58:01 +0200
Hi all, sorry for a late reply, my e-mail was in moderation queue for
almost a day, but I was able to find an answer in a few hours after I
sent it.
This did the trick for me, all is working well now:
[super setNeedsDisplay:YES]
P.S. This is in Mac OS X.
On 26 Nov 2010, at 17:52, Uli Kusterer wrote:
On Nov 24, 2010, at 6:50 PM, Artemiy Pavlov wrote:
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.
Is this iOS or MacOS?
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
_______________________________________________
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