23 |
|
|
24 |
#include <Foundation/NSAutoreleasePool.h> |
#include <Foundation/NSAutoreleasePool.h> |
25 |
#include <Foundation/NSRunLoop.h> |
#include <Foundation/NSRunLoop.h> |
|
#include <Foundation/NSTimer.h> |
|
26 |
|
|
27 |
#include "Interface/UiSdl.h" |
#include "Interface/UiSdl.h" |
28 |
#include "Interface.h" |
#include "Interface.h" |
40 |
|
|
41 |
Interface *interface = [[Interface alloc] init]; |
Interface *interface = [[Interface alloc] init]; |
42 |
[sdl setDelegate: interface]; |
[sdl setDelegate: interface]; |
43 |
|
|
44 |
/* FIXME - should understand why runloop doesn't loop without events */ |
while (1) |
45 |
[NSTimer scheduledTimerWithTimeInterval: 0.1 |
{ |
46 |
target: nil |
[[NSRunLoop currentRunLoop] |
47 |
selector: 0 |
runMode: NSDefaultRunLoopMode |
48 |
userInfo: nil |
beforeDate: [NSDate dateWithTimeIntervalSinceNow: 0.00001]]; |
49 |
repeats: YES]; |
} |
|
|
|
|
[[NSRunLoop currentRunLoop] run]; |
|
50 |
|
|
51 |
RELEASE(pool); |
RELEASE(pool); |
52 |
|
|