From: Laurent S. <lsa...@ap...> - 2007-11-03 15:32:14
|
In my environment (Leopard + Leopard's ruby + RubyCocoa trunk), darkroom.rb still hangs. Ruby is taking 100% of CPU time. It's maybe a RubyCocoa trunk regression. Laurent On Nov 3, 2007, at 4:58 AM, kimura wataru wrote: > Hi, > > It seems that the content of window is not drew. I added > window.orderFront(), then darkroom.rb works fine on Leopard. > > Index: darkroom.rb > =================================================================== > --- darkroom.rb (revision 2102) > +++ darkroom.rb (working copy) > @@ -88,6 +88,7 @@ > > def webView_didFinishLoadForFrame(web_view, frame) > viewport = web_view.mainFrame.frameView.documentView > + viewport.window.orderFront(nil) > viewport.window.display > viewport.window.setContentSize([@options[:width], > (@options[:height] > 0 ? @options[:height] : viewport.bounds.height)]) > viewport.setFrame(viewport.bounds) > > On Sat, 27 Oct 2007 10:20:44 -0400, Rich Curtis wrote: >> Hi List, >> >> Tried running the RubyCocoa darkroom.rb (/Developer/Examples/ >> RubyCocoa/ >> Scripts/darkroom.rb) example today that came with the Leopard Dev >> Tools Examples and it horked: >> > -- > kimura wataru > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a > browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |