• 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: how to redraw a view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >how to redraw a view (From: Artemiy Pavlov <email@hidden>)
 >Re: how to redraw a view (From: Uli Kusterer <email@hidden>)

  • Prev by Date: NSTask with unzip
  • Next by Date: Video player dead?
  • Previous by thread: Re: how to redraw a view
  • Next by thread: Enumerating folders/files in dmg without mounting it & selective file extraction
  • Index(es):
    • Date
    • Thread