Getting Position of NSCell in NSTableView
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