Technique for receiving specific keystrokes in Foundation
Technique for receiving specific keystrokes in Foundation
- Subject: Technique for receiving specific keystrokes in Foundation
- From: Michael Hopkins <email@hidden>
- Date: Thu, 15 Feb 2007 15:35:30 +0000
- Thread-topic: Technique for receiving specific keystrokes in Foundation
Hi all
First post to the list.
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
Foundation.
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 Foundation. Is NSRunLoop
involved perhaps?
Thanks & please feel free to CC to my email
Michael
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/ _/ _/_/_/ Hopkins Research Ltd
_/ _/ _/ _/
_/_/_/_/ _/_/_/ http://www.hopkins-research.com/
_/ _/ _/ _/
_/ _/ _/ _/ 'touch the future'
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden