OSX have that is equivalent to WaitMessage() Win32 API
OSX have that is equivalent to WaitMessage() Win32 API
- Subject: OSX have that is equivalent to WaitMessage() Win32 API
- From: Mars999 <email@hidden>
- Date: Sun, 18 Oct 2009 23:43:39 -0500
void CEngine::Start()
{
m_lLastTick = SDL_GetTicks();
m_bQuit = false;
// Main loop: loop forever.
while ( !m_bQuit )
{
// Handle mouse and keyboard input
HandleInput();
if ( m_bMinimized ) {
// Release some system resources if the app. is minimized.
WaitMessage(); // pause the application until focus in regained
} else {
// Do some thinking
DoThink();
// Render stuff
DoRender();
}
}
End();
}
Hope that clears it up....
I need a function in OSX that is equivalent to WaitMessage() from the
Win32API...
No you don't.
What are you actually trying to do?
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden