discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Technique for receiving specific keystrokes in GNUStep base


From: Richard Frith-Macdonald
Subject: Re: Technique for receiving specific keystrokes in GNUStep base
Date: Thu, 15 Feb 2007 15:44:45 +0000


On 15 Feb 2007, at 15:39, Michael Hopkins wrote:

Hi all

I am looking for some advice on how best to recognise and act on certain key strokes (e.g. Ctrl-C) whilst running a command line tool that uses GNUStep
base.

Currently our code (on various *nix's & Win32) uses the posix signal()
construct e.g.

  #include <signal.h>

   signal( SIGINT, function_to_call(...) );


I assume there is a more elegant way to do this in GNUStep base.  Is
NSRunLoop involved perhaps?

I'm afraid your assumption is wrong ... the OpenStep API does not address this issue at all, so you have to use the same posix/signal mechanism as other platforms :-(
On the plus side, at least you already know how to do that.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]