NSTimer not stopping when invalidated in this function
问题 I'm trying to use NTTimer but it doesn't work. It is started here: timer = NSTimer.scheduledTimerWithTimeInterval(0.003, target: self, selector: "openFrameAnimation", userInfo: nil, repeats: true) It fires this function: func openFrameAnimation(){ Swift.print("Animation Goes... ",NSDate().timeIntervalSince1970) self.frame = NSRect(x: self.frame.origin.x, y: self.frame.origin.y-12, width: self.frame.width, height: self.frame.height + 12) if(self.frame.height >= self.finalFrame.height){ Swift