update build for Xcode9

This commit is contained in:
秦宇航
2017-06-07 16:16:13 +08:00
parent f35d94a828
commit 9eeb0233ab
+1 -1
View File
@@ -56,7 +56,7 @@ open class StatusItemView: NSControl {
let downRateRect = downRateString.boundingRect(with: NSSize(width: 100, height: 100), options: .usesLineFragmentOrigin)
downRateString.draw(at: NSMakePoint(bounds.width - downRateRect.width - 5, 0))
}
image?.draw(at: NSPoint(x: 0, y: 0), from: NSRect(x: 0, y: 0, width: bounds.height, height: bounds.height), operation: NSCompositeSourceOver, fraction: 1.0)
image?.draw(at: NSPoint(x: 0, y: 0), from: NSRect(x: 0, y: 0, width: bounds.height, height: bounds.height), operation: NSCompositingOperation.sourceOver, fraction: 1.0)
}
open func setRateData(up:Float, down: Float) {