• 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
Getting Position of NSCell in NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting Position of NSCell in NSTableView


  • Subject: Getting Position of NSCell in NSTableView
  • From: Tim Davis <email@hidden>
  • Date: Fri, 10 Aug 2007 22:53:30 -0400


Is there anyway to get the position of the NSCell in the NSTableView? I've tried rectOfRow: but that doesn't work, it just returns the rect relative to the cell. I need to get the rect relative to the tableview.


And come to think of it, I can't figure out how determine where a control is programmaticly during runtime....maybe that would help also huh? :)

Not sure if using 'relative to' is the correct terms, but here's what I mean.

If I get the rect for a cell using rectofRow: it returns NSRect (0,0,138,25)....well I know it isn't at the origin of 0,0 because it's like fifth in the list, how can I get where it's at in the tableviews drawing space?

Hope that makes sense.

Thanks
_______________________________________________

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: Getting Position of NSCell in NSTableView
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Re: Random crash : really need help from experienced Mac OSX programmer
  • Next by Date: Re: [RESOLVED] pointer assignment inherently atomic ?
  • Previous by thread: Re: Prevent NSDrawer dragging
  • Next by thread: Re: Getting Position of NSCell in NSTableView
  • Index(es):
    • Date
    • Thread