Re: catching mouseDown in NSTableView
Re: catching mouseDown in NSTableView
- Subject: Re: catching mouseDown in NSTableView
- From: Stéphane Sudre <email@hidden>
- Date: Tue, 1 Feb 2005 21:25:35 +0100
On mardi, février 1, 2005, at 08:42 PM, Jeff Schindler wrote:
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.
File a bug report. It's already been filed but it will increase Apple's
awareness of the situation.
_______________________________________________
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