TestEvent 01

TestEvent 01
  • Downloads: 319
  • Requirements:
  • Size: 0
  • Licence:
  • Version: 0
  • Added At: 2008-02-06
  • Publisher Site:



TestEvent 01

Share

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 -[NSRunLoop run] are never called.

Requirements:
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 -[NSRunLoop run] are never called.

Requirements:
�. you can free download TestEvent 01 now.
Soft85 only provide legal software, please help us keeping pur site legal, if you think this page is violating copyrights please let us know by clicking here Here






comments powered by Disqus

Download TestEvent 01 _FREE_