On Nov 4, 2012, at 1:57 AM, Markus Spoettl wrote:

> On 11/4/12 2:27 AM, Ken Thomases wrote:
>> Maybe a better approach would be to use Core Animation layers.  Those can
>> have rounded corners and that may allow the system to update them in a better
>> manner.
> 
> I'm curious, what you mean by that, how would that work?

I'm not sure it would.  Hence "maybe".

> You need to host layers in a view in a transparent window, no? Wouldn't you 
> end up having the exact same problem? Or are you suggesting putting a layer 
> hosting custom view as replacement content view of the window?

Yes, I was suggesting making the content view layer-hosting.  I don't think it 
needs to be a custom view or even a replacement.  I think you can just 
-setLayer: and -setWantsLayer:YES on the default content view.

With layers, you can give more control over to the system.  It can 
automatically resize them, including the redraw (e.g. kCAGravityResize* and 
contentsCenter).  It will draw the rounded corners, and it may have an 
optimization for that.  Etc.  It's worth a try.

Regards,
Ken


_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to