2012-10-19 44 views

回答

1

呀,只要求該事件的buttonNumber

- (void)mouseDown:(NSEvent *)theEvent 
{ 
    if(theEvent.type == NSOtherMouseDown) 
    { 
     NSLog(@"Button number %ld was pressed.", theEvent.buttonNumber); 
    } 
} 
+0

這將做到這一點。不知道我在文檔中錯過了什麼... – Teak