• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Technique for receiving specific keystrokes in Foundation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Knowing if a scroll view is being scrolled
  • Next by Date: Re: Detecting Failed TableView Drag?
  • Previous by thread: encoding:gzip and WebServices
  • Next by thread: Re: Newbie Q: Is it possible to draw functional "Cocoa Controls" in an OpenGL context?
  • Index(es):
    • Date
    • Thread