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:

flickering

it's more or less when redrawing happens:

enter image description here

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

enter image description here

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

enter image description here

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

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Website Login Issue developed in magento -

Can the constants be defined inside a model file of a framework in PHP? -