/[hegemonie]/hegemonie/Source/Hegemonie.m
ViewVC logotype

Diff of /hegemonie/Source/Hegemonie.m

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by dam, Tue Jul 29 12:45:20 2003 UTC revision 1.4 by dam, Fri Aug 15 21:38:17 2003 UTC
# Line 23  Line 23 
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"
# Line 41  main (int argc, char **argv) Line 40  main (int argc, char **argv)
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    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26