comparison dwt/widgets/Display.d @ 36:db5a898b2119

Fixed a lot of compile errors
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Tue, 07 Oct 2008 12:56:18 +0200
parents fba856099f87
children 642f460a0908
comparison
equal deleted inserted replaced
35:7d135fe0caf2 36:db5a898b2119
163 bool disposing; 163 bool disposing;
164 164
165 /* Sync/Async Widget Communication */ 165 /* Sync/Async Widget Communication */
166 Synchronizer synchronizer; 166 Synchronizer synchronizer;
167 Thread thread; 167 Thread thread;
168 bool allowTimers, runAsyncMessages; 168 bool allowTimers, runAsyncMessages_;
169 169
170 int lastModifiers; 170 int lastModifiers;
171 171
172 Caret currentCaret; 172 Caret currentCaret;
173 173
1596 * This method is called after <code>create</code>. 1596 * This method is called after <code>create</code>.
1597 * </p> 1597 * </p>
1598 * 1598 *
1599 * @see #create 1599 * @see #create
1600 */ 1600 */
1601 protected void init () { 1601 protected void init_ () {
1602 super.init (); 1602 super.init_ ();
1603 initClasses (); 1603 initClasses ();
1604 initApplicationDelegate(); 1604 initApplicationDelegate();
1605 application.finishLaunching(); 1605 application.finishLaunching();
1606 } 1606 }
1607 1607
2874 public bool sleep () { 2874 public bool sleep () {
2875 checkDevice (); 2875 checkDevice ();
2876 if (getMessageCount () !is 0) return true; 2876 if (getMessageCount () !is 0) return true;
2877 NSAutoreleasePool pool = cast(NSAutoreleasePool)(new NSAutoreleasePool()).alloc().init(); 2877 NSAutoreleasePool pool = cast(NSAutoreleasePool)(new NSAutoreleasePool()).alloc().init();
2878 try { 2878 try {
2879 allowTimers = runAsyncMessages = false; 2879 allowTimers = runAsyncMessages_ = false;
2880 NSRunLoop.currentRunLoop().runMode(OS.NSDefaultRunLoopMode, NSDate.distantFuture()); 2880 NSRunLoop.currentRunLoop().runMode(OS.NSDefaultRunLoopMode, NSDate.distantFuture());
2881 allowTimers = runAsyncMessages = true; 2881 allowTimers = runAsyncMessages_ = true;
2882 return true; 2882 return true;
2883 } finally { 2883 } finally {
2884 pool.release(); 2884 pool.release();
2885 } 2885 }
2886 } 2886 }