• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTableView not setting -clickedRow, -clickedColumn as it should
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSTableView not setting -clickedRow, -clickedColumn as it should
      • From: Kyle Sluder <email@hidden>
References: 
 >NSTableView not setting -clickedRow, -clickedColumn as it should (From: Graham Cox <email@hidden>)
 >Re: NSTableView not setting -clickedRow, -clickedColumn as it should (From: Corbin Dunn <email@hidden>)
 >Re: NSTableView not setting -clickedRow, -clickedColumn as it should (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Storing strings in code
  • Next by Date: Re: Storing strings in code
  • Previous by thread: Re: NSTableView not setting -clickedRow, -clickedColumn as it should
  • Next by thread: Re: NSTableView not setting -clickedRow, -clickedColumn as it should
  • Index(es):
    • Date
    • Thread