overriding mouseup in NSOutlineView Subclass

Discussion in 'Mac Programming' started by McBgnr, Nov 12, 2009.

  1. McBgnr macrumors regular

    Joined:
    Apr 13, 2009
    #1
    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.
     
  2. kpua macrumors 6502

    Joined:
    Jul 25, 2006
    #2
    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.
     

Share This Page