Overriding mouseDown in NSTableView
Overriding mouseDown in NSTableView
- Subject: Overriding mouseDown in NSTableView
- From: Tim James <email@hidden>
- Date: Wed, 26 Feb 2003 23:36:02 -0800 (PST)
I've noticed that the mouseDown: function in NSTableView is a bit strange, in
that it doesn't complete until the user does a mouseUp, meaning that no mouseUp
event is ever registered (and probably no mouseDragged, though I haven't
checked).
What I find bothersome is that this gives NSTableView the appearance of being
sluggish, as a newly selected row is not visibly selected until you release or
drag the mouse. If the newly selected row were visibly selected when the mouse
went down rather than up, it would appear to be much faster.
What I'd like to do, ideally, is to override the mouseDown function in an
NSTableView subclass to simply update the visible row selection, and then pass
control back to the NSTableView to continue.
Unfortunately, I don't have a thorough knowledge of what happens in the
NSTableView's mouseDown: function, and I can always make guesses or do things
inefficiently, but I'd rather do things cleanly.
Does anyone have any suggestions? My first thought is to simply update the
selected row and redraw the table before passing control onto the super class,
but I am concerned with the inefficiency of this, as it the super class's
mouseDown function seems to do its own redrawing.
Let me know what you all think.
Thanks.
Tim
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
_______________________________________________
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.