Re: button cell - selection change timing
Re: button cell - selection change timing
- Subject: Re: button cell - selection change timing
- From: Paul Bruneau <email@hidden>
- Date: Sun, 27 Dec 2009 21:10:43 -0500
On Dec 27, 2009, at 9:00 PM, Rainer Standke wrote:
> Hello all,
>
> I have a table view with a column that holds a button cell. When the user clicks the button I need to open a web browser with an URL that is stored in the object represented by the table view's row. All of this is in a Core Data app.
>
> When the button is clicked in a row that is already selected everything works as expected.
>
> When the user clicks a button in a row that is currently not selected, then I get the URL for the row that's in the process of being de-selected, because the method targeted by the button runs before the selection has changed to the new row.
>
> What can I do about this?
Can we see the code in the method targeted by the button? It is good to show some code when asking for help.
Although it might not be necessary--I suspect you are using -selectedRow instead of -clickedRow to get the row the user clicked. Try -clickedRow._______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden