Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

running your own event loop: example code available



I have been investigating how to keep more control of the event loop within
my application and have made some sample programs available at:
http://hayne.net/MacDev/TestEvent/

One of these sample programs shows how to break NSApplicationMain up into
(what I imagine might be) its component parts so as to have explicit control
of the event loop.
The other example program is derived from an example posted on this list a
while ago by Douglas Davidson. It shows how to integrate BSD-level sockets
into the CFRunLoop of a Foundation tool.

I would be very interested in hearing any comments or suggestions about this
sample code - things I am missing, possible problems, better ways to do it,
etc.

--
Cameron Hayne (email@hidden)
Hayne of Tintagel
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.