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: Corbin Dunn <email@hidden>
- Date: Wed, 08 Aug 2012 13:21:25 -0700
On Aug 8, 2012, at 11:38 AM, Kyle Sluder <email@hidden> wrote:
> 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?
I just hadn't thought that people would have needed the clicked row earlier; that's about it. Yeah, log a bug; there isn't any reason I can't change it.
corbin
>
> --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