Re: NSTableView not setting -clickedRow, -clickedColumn as it should
Re: NSTableView not setting -clickedRow, -clickedColumn as it should
- Subject: Re: NSTableView not setting -clickedRow, -clickedColumn as it should
- From: Kyle Sluder <email@hidden>
- Date: Wed, 08 Aug 2012 11:38:03 -0700
On Wed, Aug 8, 2012, at 10:38 AM, Corbin Dunn wrote:
> No it hasn't changed, but the clicked row is set *after* you return a
> menu. That way your menu validation code can use it. I think the
> DragNDropOutlineView demo shows how to do this.
I've always thought this was an extremely odd design decision, since it
essentially forces you to use a menu delegate to build your menu rather
than just handing back the correct NSMenu instance from -menuForEvent:.
Is there a reason that I shouldn't file a bug asking for clickedRow to
be set as soon as the row is clicked?
--Kyle Sluder
_______________________________________________
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