I have finally narrowed down my subview scaling problem to the setwantslayer. If that is set to YES for an nsview, changing the frame and bounds of a subview can produce arbitrary results. Leaving it off seems to work. My only issue is that I will no longer be able to use core animation layers and effects. It seems that this is somewhat of a major problem. Is there any way to make this work? Does this work in SL? I am about to upgrade anyway.

To confirm this, I created a simple test app with a three test cases.
In my window NIb I have the following
1) standalone button
2) box with subview of button
3) NSView with subview of button.

I am scaling each button by changing the frame and then calling scaleUnitSquareTosize.

If I setwantslayer on the nsview, strange effects start to happen and the button doesn't scale right. You get clipped portions, and strange bounds settings. It setwantslayer set to NO, it all works properly.

Is there a way to make this work?

Thanks


Josh
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to