基本内容
属性
let activeCursor = NSCursor.current
方法
NSCursor.pointingHand.set()
let cursorImage = NSCursor.arrow.image
let cursorHotSpot = NSCursor.arrow.hotSpot
addCursorRect(bounds, cursor: NSCursor.pointingHand)
override func resetCursorRects() { super.resetCursorRects() addCursorRect(bounds, cursor: NSCursor.pointingHand) }
NSCursor.link.set()
NSCursor.closedHand.set()
NSCursor.openHand.set()
NSCursor.crosshair.set()
NSCursor.resizeLeftRight.set() NSCursor.resizeUpDown.set()
自定义光标
其他方法
总结
Last updated