From: kimura w. <ki...@us...> - 2007-11-03 08:58:59
|
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 |