I have an app that I am building that places subviews into an nsview. Each subview is an nsview with a bunch of ui controls. I was having problems scaling the view. I tried everything. I then discovered that removing the setwantslayer:yes causes the scaling to work properly. I do lose all core animation abilities though.
I built a test app that created a simple window. I then placed an NSButton into the window. I created another as a subview of an NSBox and a third as a subview of an NSView.
I then scaled each by scaling the frame and then calling scaleUnitSquareToSize. To be sure I also setNeedsDisplay:YES on each button. It works perfectly except when I turn setwantslayer:yes on the nsview. It appears that the frame and bounds of the button don’t get updated properly. I get arbitrary and strange results.
In my actual application, the subviews are not scaled at all properly or even touched.
This seems to be a considerable bug. Am I missing something? Is there a workaround?