From: Eloy D. <elo...@gm...> - 2009-08-12 07:45:23
|
I would take a look at NSTimer's initWithFireDate:interval:target:selector:userInfo:repeats: instance method http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSTimer_Class/Reference/NSTimer.html#/ /apple_ref/occ/instm/NSTimer/ initWithFireDate:interval:target:selector:userInfo:repeats: HTH, Eloy On 12 aug 2009, at 05:33, Ferlander Davids wrote: > I've been having some trouble. My app relies on a executing a ruby > script in intervals of hours. During the intervening time the script > stays in a sleep loop. The problem is that it needs to update the UI > with at least some information every once in a while. I'm currently > using a progress bar, because for some reason it can refresh from > inside a running script. I don't think that's enough though. > Of course, ideally I would also like to find a solution to the > beachballing cursor and generally unresponsive UI. > I found > http://minikidsgames.sourceforge.net/rubycocoa/tips-and-pitfalls-in-using-rubycocoa/#content_Object_3 > but unfortunately it's over my head. > > I was wondering if anyone had any suggestions, or if there might be > a more obvious solution that I've missed so far. I'm in love with > the program I'm writing and I want it to be usable by the general > public. =) > > Ferlander > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july_______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |