Cocoa Equivalent of "DoEvents"

  • Forgive the simple question, but I've been searching the docs and can't seem
    to figure out how to do something quite simple.  I have a complex task that
    I'm performing, and it takes some time.  I want the window to update as I
    work through the loop.  I'm looking for the Cocoa equivalent of the Visual
    Basic "DoEvents" so that I can get the window updates each time through.

    Thanks in advance for your help.
  • On 01 Sep 07, at 21:10, Chris Williams wrote:
    > Forgive the simple question, but I've been searching the docs and
    > can't seem
    > to figure out how to do something quite simple.  I have a complex
    > task that
    > I'm performing, and it takes some time.  I want the window to
    > update as I
    > work through the loop.  I'm looking for the Cocoa equivalent of the
    > Visual
    > Basic "DoEvents" so that I can get the window updates each time
    > through.

    There's no direct equivalent. If you need to perform a time-consuming
    task, do it on a separate thread.
  • OK, Thanks.  Did that, and it works as expected.

    From: Andrew Farmer <andfarm...>
    Subject: Re: Cocoa Equivalent of "DoEvents"

    There's no direct equivalent. If you need to perform a time-consuming
    task, do it on a separate thread.
previous month september 2007 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Go to today