CALayer + NSOutlineView/NSTableView
问题 Here is the issue: a view-based NSOutlineView (or NSTableView, both have the issue) contains a custom control hosting a CALayer, for custom animation purposes. When resizing the outline view, or after deleting rows (animated deletion), the CALayer draws at the wrong place. This is just after an horizontal resize (the gray square is the CALayer): This is just after deleting the row where the gray square is missing (the gray square is the CALayer): It looks like the CALayer is drawn a little