Main application loop question : what is inside [NSApp run] ?
Main application loop question : what is inside [NSApp run] ?
- Subject: Main application loop question : what is inside [NSApp run] ?
- From: Tristan Lorach <email@hidden>
- Date: Tue, 4 Mar 2003 09:28:17 -0800
I'm just trying to do the same as [NSApp run] because I would like to keep
the control over this main loop. My purpose is to write my own loop so that
I can introduce some other processing (OpenGL). I want to do this because I
need OpenGL to be a priority regarding to the rest of the app... Anyway.
Thus I decided to get the Current Loop : [NSRunLoop currentRunLoop] so that
I could call it like :
While(...)
{
[[NSRunLoop currentRunLoop] runUntilDate:NULL];
}
It should properly handle events of the loop. But it doesn't. If ever I only
try this line :
[[NSRunLoop currentRunLoop] run];
Instead of
[NSApp run];
The problem is the same : the mouse events aren't properly handled (buttons
don't react, the window cannot be moved etc)
Any idea of what's inside [NSApp run] ?
Tristan Lorach
NVidia - DevTech department.
_______________________________________________
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.