NSPopover and NSTableView

I am looking for a way to bind an NSPopover to an NSTableView cell. showRelativeToRect:(NSRect)positioningRect ofView:(NSView *)positioningView preferredEdge:(NSRectEdge)preferredEdge; The question is, how can I find positioningRect and positioningView for a cell?

+4
source share
1 answer

The answer is simple: use [tableview frameOfCellAtColumn:0 row:[tableview selectedRow]]; for positioningRect and tableview for positioningView

+16
source

All Articles