如何在NSScrollEvent
(在OS X 10.6中)的NSEvent
中訪問屬性scrollPhase
?在NSEvent中訪問scrollPhase
- (void)scrollWheel:(NSEvent *)event {
NSLog(@"Scroll Event: %@", event);
}
如果我將事件寫入日誌,我可以看到想要的信息:
... Scroll Wheel Event: NSEvent: type=ScrollWheel ... scrollPhase=Continue
... Scroll Wheel Event: NSEvent: type=ScrollWheel ... scrollPhase=End