PDA

View Full Version : overriding mouseup in NSOutlineView Subclass




McBgnr
Nov 13, 2009, 02:04 AM
I want to override mouseup event in NSOutlineView. For this I have subclassed NSOutlineView and added mouseup method in the subclass. However, this method is not getting called. Is there anything that I am missing ? The overridden mousedown method is working fine.



kpua
Nov 13, 2009, 10:51 AM
Are you calling [super mouseDown:] in your own implementation? It's possible the superclass uses a tracking loop in mouseDown: instead of using mouseDragged: and mouseUp:. If your subclass successfully handles the mouseDown:, don't call super. Then mouseUp: should be called appropriately.