• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How do I insert a function or class call into the main event loop?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I insert a function or class call into the main event loop?


  • Subject: How do I insert a function or class call into the main event loop?
  • From: John Draper <email@hidden>
  • Date: Mon, 22 Aug 2005 13:45:50 -0700

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: How do I insert a function or class call into the main event loop?
      • From: Andy Matuschak <email@hidden>
  • Prev by Date: Re: no mouseUp if mouseDown not overridden?
  • Next by Date: Re: How do I insert a function or class call into the main event loop?
  • Previous by thread: Re: Command line parameters...
  • Next by thread: Re: How do I insert a function or class call into the main event loop?
  • Index(es):
    • Date
    • Thread