Carbon events (again)

Moderator
Posts: 702
Joined: 2002.04
Post: #1
ok, I've currently got this code :

Code:
[...]
RunApplicationEventLoop();
   //   main loop starts here.
while(!quit)
{
   statementX();
}
[...]

the problem is that statementX(); will never be executed til QuitApplicationEventLoop(); has been executed; is there an easier way to overcome this, other than to place the main loop statements into an event handler and call it every frame based on a timer?

Mark Bishop
--
Student and freelance OS X & iOS developer
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
Nope.
Quote this message in a reply
Moderator
Posts: 702
Joined: 2002.04
Post: #3
oh well, short & not-so-sweet.

thanks OneSadCookie!

Mark Bishop
--
Student and freelance OS X & iOS developer
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [For David, aarku] Carbon Events OneSadCookie 4 5,838 Mar 5, 2013 10:20 PM
Last Post: SethWillits
  Carbon events in windowed/full screen mode. Help needed. Anton Petrov 1 3,807 Dec 18, 2008 05:35 AM
Last Post: DoG
  Simulating "system idle" events in Carbon applications ascotti 4 3,747 May 2, 2006 03:22 PM
Last Post: OneSadCookie
  Carbon Key Events Nickolei 7 5,426 Nov 17, 2002 03:37 PM
Last Post: codemattic
  Carbon Keyboard Events IBethune 7 6,085 Oct 22, 2002 05:58 AM
Last Post: IBethune