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
Post a Comment