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 = [sender selectedRow]; NSCell *cell = [myTableColumn dataCellForRow: row]; NSRect cellRect = [[cell controlView] bounds]; [self.myPopover showRelativeToRect: cellRect ofView:sender preferredEdge:NSMaxXEdge]; } The popover shows up nicely, but always points to the middle of the table, instead of to the cell that was clicked in. How can I get the bounds of the cell that was clicked in? Thanks, - Koen. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com