我有带有音量值的slider。我需要在现场改变音量。我的代码有什么问题?@IBOutletweakvarvolumeSliderCurr:NSSlider!@IBActionfuncvolumeSlider(sender:AnyObject){varevent:NSEvent=NSApplication.sharedApplication().currentEvent!mouseUp(event)}overridefuncmouseUp(theEvent:NSEvent){super.mouseUp(theEvent)audioPlayer.volume=volumeSliderCur