objective c - NSView -scaleUnitSquareToSize leaves view blank until it's resized despite -setNeedsDisplay message -


I have used this guide: scaled view to implement scaling in a particular view The problem is the problem is that when I call-scale unitSquareToSize, then call -setNeedsDisplay: Yes (I also tried -SetNeedsDisplay: Yes on Scroll View), the view (not scrolling bar, just everything inside) becomes empty If I resize the window containing the view, then its contents Is seen again and displayed properly. But as soon as I rescale and redraw, it's empty out again. Any ideas about how to force the scene to refresh properly?

In addition, sorry to not provide the source code, but the code is business secrets, so ...

Looks like clip views are not being updated to handle the scale of your content view. Try to log on to the document view, clip view and frame and border of the content view.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -