justin = { main feed , music , code , askjf , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.


Name: Ask: Human (enter yes):
[back to index] | [unreplied] | [replied] | [recent comments] | [all]

Question: [Easy on Win but google didn't help for OSX] How can a main thread wait for smthg -but- keeps its UI updating ? I'm using SWELL.
Asked by frenchos (46.218.205.x) on March 11 2013, 2:54pm
Reply on March 11 2013, 4:45pm (edited at March 11 2013, 4:46pm):
    Ideally you should make it event driven and check on a timer, but if you insist on doing it in a loop, you can do '[[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:ms*0.001]]' in your loop. We are guilty of doing this in the splash screen, I think, ugh (for fades).

Comment:
    Your Name:   -- Site Owner's Name:  (for human-verification)

    Comment:    

    
  
[back to index] | [unreplied] | [replied] | [recent comments] | [all]
Copyright 2025 Justin Frankel. | RSS