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

    Joined:
    Feb 28, 2009
    #1
    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

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

    kainjow

    Joined:
    Jun 15, 2000
  4. thread starter macrumors newbie

    Joined:
    Feb 28, 2009
    #4
    Thanks, using display worked. Seems so obvious too. Thanks again.
     

Share This Page