[Gridflow-cvs] [svn] commit: r4880 - /trunk/src/quartz.m

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Thu Dec 17 22:13:20 EST 2009


Author: pboivin
Date: Thu Dec 17 22:13:19 2009
New Revision: 4880

Log:
no more spinning beach ball of death !

Modified:
    trunk/src/quartz.m

Modified: trunk/src/quartz.m
==============================================================================
--- trunk/src/quartz.m (original)
+++ trunk/src/quartz.m Thu Dec 17 22:13:19 2009
@@ -132,16 +132,16 @@
 		widget = [[GFView alloc] initWithFrame: r];
 		[window setContentView: widget];
 		[window setTitle: @"GridFlow"];
-		[window makeKeyAndOrderFront: NSApp];
+		[window makeKeyAndOrderFront: nil];
 		[window orderFrontRegardless];
 		wc = [[NSWindowController alloc] initWithWindow: window];
 		clock = clock_new(this,(t_method)FormatQuartz_call);
+		clock_delay(clock,0);
 		[window makeFirstResponder: widget];
 		//post("mainWindow = %08lx",(long)[NSApp mainWindow]);
 		//post(" keyWindow = %08lx",(long)[NSApp keyWindow]);
 		NSColor *color = [NSColor clearColor];
 		[window setBackgroundColor: color];
-		[window displayIfNeeded];
 	}
 	~FormatQuartz () {
 		clock_unset(clock);
@@ -217,7 +217,6 @@
 \def 0 title (string title="") {
     NSString *str = [[NSString alloc] initWithCString:title.c_str()];
     [window setTitle: str];
-    [window displayIfNeeded];
 }
 
 \def 0 move (int y, int x) {



More information about the Gridflow-cvs mailing list