Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

McBgnr

macrumors regular
Original poster
Apr 13, 2009
144
0
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.
 
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.