Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NSPopover and NSTableView cell

I'm looking for way attach NSPopover to cell of NSTableView.

showRelativeToRect:(NSRect)positioningRect ofView:(NSView *)positioningView preferredEdge:(NSRectEdge)preferredEdge;

The question how I can find positioningRect and positioningView for cell?

like image 536
AlexT Avatar asked Sep 08 '11 09:09

AlexT


1 Answers

Answer is easy: use [tableview frameOfCellAtColumn:0 row:[tableview selectedRow]]; for positioningRect and tableview for positioningView

like image 196
AlexT Avatar answered Oct 13 '22 23:10

AlexT