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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to