Re: How do I insert a function or class call into the main event loop?
Re: How do I insert a function or class call into the main event loop?
- Subject: Re: How do I insert a function or class call into the main event loop?
- From: Andy Matuschak <email@hidden>
- Date: Mon, 22 Aug 2005 15:54:16 -0500
The easiest way to do that is probably through a scheduled NSTimer
with a time interval of 0.
- Andy Matuschak
On Aug 22, 2005, at 3:45 PM, John Draper wrote:
Hi,
I have a periodic function I need to call. I want to insert it
into the event loop.
Lets assume I have the following function I want to insert into an
event loop.
The function is a C++ method call. When I combine C++ with Obj
C, I usually
define a "bridge" class to bridge Obj C into making C++ calls.
for instance, in my bridge class, I might have an Obc Method call
I want to
insert into the event loop. The C++ Method call would look like
this...
- (void)do_periodic
{
stack->process(myfdSet);
}
Now, I want to insert this into the event loop so it will be
called repeatedly. How do I do this
in Cocoa?
If you send me references to any documentation, please include the
exact URL that leads me to it.
Thanx
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40andymatuschak.org
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden