| 178 | extern "C" void *const NSDefaultRunLoopMode; |
| 179 | |
| 180 | bool AppleWindow::Update() |
| 181 | { |
| 182 | NS::AutoreleasePool *pAutoreleasePool = NS::AutoreleasePool::alloc()->init(); |
| 183 | while(true) |
| 184 | { |
| 185 | NS::Event *event = pSharedApplication->nextEventMatchingMask( |
| 186 | (int)NS::EventMaskAny, NS::Date::distantPast(), (NS::String *)NSDefaultRunLoopMode, true); |
| 187 | if(event == NULL) |
| 188 | break; |
| 189 | pSharedApplication->sendEvent(event); |
| 190 | } |
| 191 | pAutoreleasePool->release(); |
| 192 | |
| 193 | return pAppDelegate->GetWindow()->visible(); |
| 194 | } |
no test coverage detected