[Openmcl-devel] Why can't I change the behavior of the console window?

Ron Garret ron at awun.net
Wed Jul 16 14:03:11 PDT 2008


I'm trying to debug an application that generates tons of error output  
to the console window.  When that happens, the console window's  
default behavior of raising itself to the front whenever something  
gets printed to it becomes very annoying, so I decided to try to  
change it.  I went into cocoa-ide/console-window.lisp and did this:

;;; Insert/append a string to the console-window's text view,
;;; activating the window if necessary.

(objc:defmethod (#/insertString: :void) ((self console-window) string)
   (with-slots ((tv typeout-view)) self
;    (unless (console-window-hidden-by-user self)
;      (#/makeKeyAndOrderFront: self +null-ptr+))
     (#/insertString: (typeout-view-text-view tv) "foo")
     (#/insertString: (typeout-view-text-view tv) string)))

and rebuilt the Cocoa application (several times).  The behavior of  
the console window did not change.  It still brings itself to the  
front, and it does not print the diagnostic "foo" string.  I even  
tried deleting the old ccl app and all the cocoa-ide fasl files before  
rebuilding to make sure I'm getting a clean build.  What am I doing  
wrong?

rg




More information about the Openmcl-devel mailing list