Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to place an NSButton over an NSTableView

Button with nothing behind itTable loadedButton with table behind it

1) No table behind button 2) Table loaded 3) After scrolling

If I place a button over an NSTableView I get artifacts being left behind after scrolling. Does anyone know how to fix this?

My current solution is just to split the section with the table into 2. The lower portion is a disabled button in the background.

My solution for now

like image 919
joels Avatar asked Nov 12 '22 08:11

joels


1 Answers

Try the NSScrollView method - (void)addFloatingSubview:(NSView *)view forAxis:(NSEventGestureAxis)axis All tableviews should normally be inside a ScrollView.

like image 197
uchuugaka Avatar answered Nov 15 '22 07:11

uchuugaka