lib/osx/sugarcube-animations/nsview.rb in sugarcube-3.5.0 vs lib/osx/sugarcube-animations/nsview.rb in sugarcube-4.0.0
- old
+ new
@@ -1,6 +1,6 @@
-class UIView
+class NSView
class << self
# This is an internal helper method to determine the animation options.
def sugarcube_animation_options(options)
@@ -43,10 +43,10 @@
self.wantsLayer = true
if self.layerContentsRedrawPolicy == NSViewLayerContentsRedrawDuringViewResize
self.layerContentsRedrawPolicy = NSViewLayerContentsRedrawOnSetNeedsDisplay
end
- UIView.animate(options, &animations)
+ NSView.animate(options, &animations)
return self
end
def show
self.hidden = false