• 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: -clickedRow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -clickedRow


  • Subject: Re: -clickedRow
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 05 Nov 2015 12:51:06 -0800

> On Nov 5, 2015, at 12:35 PM, Raglan T. Tiger <email@hidden> wrote:
>
> In -rightMouseDown I call [self clickedRow] which always returns -1 in a row or not in row

Yeah, you’re getting control before the base class has had a chance to set the clickedRow property. (Have you tried calling the superclass method first? That might help.)

> What should I be doing to get the clicked row?

Convert the position to local coords, then call -rowAtPoint:.

—Jens
_______________________________________________

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: -clickedRow
      • From: corbin dunn <email@hidden>
    • Re: -clickedRow
      • From: "Raglan T. Tiger" <email@hidden>
References: 
 >-clickedRow (From: "Raglan T. Tiger" <email@hidden>)

  • Prev by Date: -clickedRow
  • Next by Date: Adding first Swift file to a framework ("Umbrella header not found")
  • Previous by thread: -clickedRow
  • Next by thread: Re: -clickedRow
  • Index(es):
    • Date
    • Thread