I need a way to instantly redisplay a view, any help would be great.

Discussion in 'Mac Programming' started by ausername, Mar 23, 2009.

  1. macrumors newbie

    Feb 28, 2009
    Hello, what I am trying to do is display a dot in a view, but I want the color to actively change while in a loop. The problem is that [self setNeedsDisplay:YES] seems to wait until the loop ends before redrawing the view. Is there a way to tell the view to redraw instantly, and not wait for the loop to end first? Any help would be much appreciated.
  2. macrumors member

    Aug 5, 2003
    Scheßlitz, Oberfranken, Bavaria, Germany
  3. Moderator emeritus


    Jun 15, 2000
  4. thread starter macrumors newbie

    Feb 28, 2009
    Thanks, using display worked. Seems so obvious too. Thanks again.

Share This Page