setwantslayer:yes = rendering problem scaling subviews
setwantslayer:yes = rendering problem scaling subviews
- Subject: setwantslayer:yes = rendering problem scaling subviews
- From: Joshua Strickon <email@hidden>
- Date: Thu, 10 Sep 2009 14:44:11 -0400
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 (email@hidden)
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:
This email sent to email@hidden