catching mouseDown in NSTableView
catching mouseDown in NSTableView
- Subject: catching mouseDown in NSTableView
- From: "Jeff Schindler" <email@hidden>
- Date: Tue, 1 Feb 2005 14:42:49 -0500
I need to check conditions before allowing a user to make a
new selection in an NSTableView, displaying a sheet to confirm that the user
wants to change the selection. Problem is when I display this sheet during
either tableView:shouldSelectRow: or in the mouseDown of an NSTableView subclass
and continue on after the sheet has been dismissed, the event loop appears to
get screwed up. I have to do an extra mouse click in order for the
selection change to take place and other events like key events don't seem to
respond correctly after that. Any ideas as to why a modal sheet might
cause this problem? And is there a way around it? My only other
option is to re-write the selection code for the NSTableView, which I'd rather
not do. Thanks.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden