[MacRuby-devel] Noob q: Press any key to cancel

Maik Kempe root at breaking-limits.com
Wed Dec 7 08:15:35 PST 2011


Nice, thanks for the link.

On Dec 7, 2011, at 5:08 PM, Daniel Westendorf wrote:

> Just throwing this out there in case you haven't found it yet: GCD via Dispatch.
> 
> https://github.com/gunn/Dispatch
> 
> dw
> 
> On Wed, Dec 7, 2011 at 8:56 AM, Rob Ista <rob.ista at me.com> wrote:
> Thx Terry, that might be an idea .. the calculations are not that diff so i could rewrite them in Obj-C to keep  the task object small … or the other way around: i'll create a task with a panel and pipe the cancel to the process
> Rob
> 
> 
> Could you wrap the process into an NSTask and use pipes to communicate?
> 
> 
> Terry
> On 6/12/2011, at 11:43 AM, Rob Ista wrote:
> 
> 
>  Hi, i have broken my braincells while trying to find a simple solution for interrupting a potentially long running calculation loop.
>  A key event seems to wait until the app gets back to the main loop, a system("stty raw -echo") just hangs, gets and read.non-block either wait or want a enter to follow any character. I couldn't get it working with a notification either. I just can't find it :) .. Any help appreciated .. tnx, Rob
> 
>  _______________________________________________
> 
>  MacRuby-devel mailing list
> 
>  MacRuby-devel at lists.macosforge.org
>  http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
> 
>        • Previous message: [MacRuby-devel] Noob q: Press any key to cancel
>        • Next message: [MacRuby-devel] #welovemacruby
>        • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> More information about the MacRuby-devel mailing list
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
> 
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Maik Kempe
Br∑αkíηg £ímíτs | impossible = POSSIBLE

 -- 

Br∑αkíηg £ímíτs
  root at breaking-limits.com
  breaking-limits.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20111207/f1e90200/attachment.html>


More information about the MacRuby-devel mailing list