8.6/10 (33 أصوات )




  • مرات التنزيل: 273
  • متطلبات التشغيل:
  • الحجم: 0
  • الترخيص:
  • الاصدار : 0
  • اضيف في: 2008-02-06 00:00:00
  • اخر تحديث: 23/06/2006
  • الموقع علي الانترنت:






Description


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:





التعليقات علي TestEvent 0.1
اضافة تعليق

تعليقات الفيسبوك

تعليقات الموقع