objective c - NSScrollView/NSCollectionView on NSVisualEffectView cause flickering -
i have nscollectionview within nsvisualeffectview within nspopover. everytime when it's refreshing(add, remove, reload nscollectionviewitem, or click buttons on nscollectionviewitem's view), has glitches on controls.
here's screenshot try when it's opening:

it's more or less when redrawing happens:

also, if put button border off on it, when clicked color went off, flickering:

i tried set background color in different views/controls, seems nscollectionview black/white (depending on ui color selection) when it's empty:

did missed anything?
edit:
by adding scrollview.needsdisplay = false/true before/after item change make of flickers gone. still, problems still exist.
also, if forcely enabled horizontal scroller bar or disabled autoresize subview, flicker no longer show when add/remove items.
i had same problem using nstableview inside nspopover. able fix setting controls appearance type aqua instead of dark/light.
Comments
Post a Comment