lib/osx/sugarcube-repl/repl.rb in sugarcube-2.0.0 vs lib/osx/sugarcube-repl/repl.rb in sugarcube-2.0.1
- old
+ new
@@ -26,13 +26,12 @@
end
end
def blink(color=nil)
return unless check_sugarcube_view
- blinking_view ||= blink_view(color)
blinking_view = NSView.alloc.initWithFrame([[0,0], @sugarcube_view.frame.size])
- color = color.uicolor if color.respond_to?(:uicolor)
+ color = color.nscolor if color.respond_to?(:nscolor)
blinking_view.backgroundColor = color
blinking_view.alpha = 0
if @sugarcube_view.window
blinking_view.frame = @sugarcube_view.convertRect([[0, 0], @sugarcube_view.frame.size], toView: @sugarcube_view.window)
@sugarcube_view.window.addSubview(blinking_view)