TestSignals

TestSignals - Test platform for use in understanding UNIX signals
Download

TestSignals Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Cameron Hayne
  • Publisher web site:
  • http://hayne.net/MacDev/Perl/zero_separated
  • Operating Systems:
  • Mac OS X
  • File Size:
  • 15 KB

TestSignals Tags


TestSignals Description

TestSignals - Test platform for use in understanding UNIX signals TestSignals sets up signal handlers for most of the commonly sent signals. It is intended as a test platform for use in understanding UNIX signals.You can send it signals by using the 'kill' command from a Terminal window (Signals: HUP = 1, INT = 2, KILL = 9, TERM = 15, STOP = 17, QUIT = 3, ABRT = 6, USR1 = 30, USR2 = 31) or by using the pull-down menu to send itself signals.You can also try doing "Force-Quit" on this application to see what signals are sent by that operation.Because of the restrictions on what you can safely do in a signal handler, this program just sets a global variable which is later read by a method that is called periodically via an NSTimer. This project illustrates a few aspects of programming for Mac OS X using the Cocoa API:· using NSPopupButton to implement a pull-down menu that uses 'tags' to identify which menu item was chosen· using 'scrollRangeToVisible' to keep the latest information visible in a scrolled NSTextView· use of 'applicationShouldTerminateAfterLastWindowClosed' to quit the application when the window is closed· updating a counter via NSTimerRequirements:· Xcode (to build the app from source)


TestSignals Related Software