Re: Bounds of selected NSTableView cell

2012-04-08 Thread Koen van der Drift
On Apr 8, 2012, at 12:08 PM, Felix Franz wrote: > you can use NSTableView>>frameOfCellAtColumn:row: to get the frame of the > cell at the columnIndex/rowIndex. Thanks! - Koen. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not p

Re: Bounds of selected NSTableView cell

2012-04-08 Thread Felix Franz
Hi Koen, you can use NSTableView>>frameOfCellAtColumn:row: to get the frame of the cell at the columnIndex/rowIndex. The controlView of the cell is the NSTableView-object, and thus you always get the bounds of the table itself. For the rects of rows/columns you can use rectOfRow:/rectOfColumn

Bounds of selected NSTableView cell

2012-04-08 Thread Koen van der Drift
I am trying to find out what the bounds are of the cell of an NSTableView that was clicked in. I'd like to use that rect to show a NSPopover when the user double clicks on a cell. I have this in my NSTableView controller class: -(IBAction)doubleClickAction:(id)sender { NSInteger row = [