NSRulerView update issues with layer backing

When changing the super view of my view hierarchy to be layer backed in Interface Builder the rulers of my embedded scroll view no longer properly refresh.


Turning off the layer backing again the for scroll view's super view and everything works just fine.


Is there a work-around for displaying rulers in a layer backed scroll view?

Seems like a trivial task..


Cheers,

Jay

Replies

FWIW - the behaviour is OK on 10.10.


So this means we cannot use rulers in a scroll view on 10.8?

Wow.


Cheers,

Jay

The set up for layer backed views has gotten better the last couple releases though it can still be a bit of a pain...with things going blurry or not drawing at all you have to do additional setup. It seems by default AppKit is pretty aggressive about how layer backed views are drawn by default (I guess for performance reasons)...though i'd rather sacrifice performance at times...instead of having a subview not draw at all or draw at poor quality.


I've had better success at times turning Core Animation programmatically. If you're turning on layers in Interface Builder, maybe try doing it in code instead. Did you make the ruler layer backed too?