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?
Answer is easy:
use [tableview frameOfCellAtColumn:0 row:[tableview selectedRow]];
for positioningRect
and tableview
for positioningView
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With