[MacRuby-devel] NSTimer

Jordan K. Hubbard jkh at apple.com
Sun Oct 11 11:01:56 PDT 2009


On Oct 11, 2009, at 9:19 AM, Robert Rice wrote:

> Do you have a preferred method for doing backgound tasks in MacRuby  
> - perhaps separate threads?

I would say GCD is probably your best bet for this, since you can  
simply arrange to have a ruby block execute when your timer fires.

Of course, now that I go looking for documentation in the MacRuby  
source tree which describes how to do timers "the ruby way", I can't  
find any, but I'm sure it's hiding in there somewhere, right guys? :)

- Jordan



More information about the MacRuby-devel mailing list