• 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
NSTableView clicked row
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView clicked row


  • Subject: NSTableView clicked row
  • From: Bert Torfs <email@hidden>
  • Date: Thu, 17 May 2007 21:46:36 +0200

Hi all

I have 2 - as far as I can see - identical NSTableViews (instances of my own custom class). They both show 4 rows. I add 5 rows to both so the vertical scroll bar appears. When I click the fifth row in the first table (have to scroll up to make the 5th row visible), the clicked point (converted with [self convertPoint:thePoint fromView: [[self window] contentView]];) has a Y coordinate of 85 - which is right. When clicking the 5th row in the second table, the clicked point has converted coordinates of 65 (more or less) - which is a point from the 4th row. I would expect a value between 80 and 100 here. It is as if the NSTableView does not know that it is scrolled up.
Any idea why it works in one table and not in the other. (I looked for differences in InterfaceBuilder, but could not find any.)


Thanks a lot,

Bert

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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 clicked row
      • From: Manfred Schwind <email@hidden>
  • Prev by Date: Re: Table column bindings to NSArrayController not working
  • Next by Date: Re: NSTableView clicked row
  • Previous by thread: Re: Add Preference Pane for Background-only app
  • Next by thread: Re: NSTableView clicked row
  • Index(es):
    • Date
    • Thread