• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
mouseUp: not called in NSTableView subclass when mouseDown: is overridden
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mouseUp: not called in NSTableView subclass when mouseDown: is overridden


  • Subject: mouseUp: not called in NSTableView subclass when mouseDown: is overridden
  • From: cricket <email@hidden>
  • Date: Sun, 9 May 2004 15:29:59 -0700

If I create an NSView subclass, and override mouseDown: and mouseUp: as follows, I receive both NSLogs when I click in the view:

- (void)mouseDown:(NSEvent *)theEvent {
NSLog(@"mousedown");
[super mouseDown:theEvent];
}

- (void)mouseUp:(NSEvent *)theEvent {
NSLog(@"mouseup");
[super mouseUp:theEvent];
}

However, if I create an NSTableView subclass, and override these same two methods, I only get the NSLog for the mouseDown: call. Anyone know why this is? I can't find anything in the documentation to explain this.

- cricket

---------->
http://www.holemusic.com/speech/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: mouseUp: not called in NSTableView subclass when mouseDown: is overridden
      • From: m <email@hidden>
    • Re: mouseUp: not called in NSTableView subclass when mouseDown: is overridden
      • From: Allan Odgaard <email@hidden>
  • Prev by Date: Re: NSTableView: removing the column headers programmatically
  • Next by Date: Re: mouseUp: not called in NSTableView subclass when mouseDown: is overridden
  • Previous by thread: NSTextView and CFPlugIn
  • Next by thread: Re: mouseUp: not called in NSTableView subclass when mouseDown: is overridden
  • Index(es):
    • Date
    • Thread