TestEvent

TestEvent illustrates how to break up the opaque NSApplicationMain function
Download

TestEvent 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:
  • 6 KB

TestEvent Tags


TestEvent Description

TestEvent illustrates how to break up the opaque NSApplicationMain function The TestEvent program illustrates how to break up the opaque NSApplicationMain function into its component parts in order to gain more control over the handling of events in a Cocoa program. TestEvent has its own explicit event loop that uses the NSApplication method 'nextEventMatchingMask' to get each event, prints out details on that event, and then dispatches the event via NSApplications's 'sendEvent' method. This program has two other sources of 'events':· a timer that prints out a message periodically,· the same socket-handling that is in the above TestCFRunLoop program. Note that the socket 'events' and the timer 'events' do get received even though CFRunLoopRun() or - are never called.Requirements:· Xcode (to build the app from source)


TestEvent Related Software