Re: A button, an arrayController and a tableView....
Re: A button, an arrayController and a tableView....
- Subject: Re: A button, an arrayController and a tableView....
- From: Jens Alfke <email@hidden>
- Date: Fri, 28 Oct 2011 22:10:47 -0700
On Oct 26, 2011, at 7:02 PM, R wrote:
> If I don't pre-select the row, it takes two clicks of the button to
> register the correct object. The first click will register the
> previously selected row. It's like the button is at a higher priority
> than the selected row.
Sounds like the button’s action method gets called before the table view’s selection-changed notification gets sent.
Not surprising, since they can’t very well happen simultaneously, so one has to come first.
Your solution of using the .clickedRow property seems correct to me.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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