github/Rebel — pull request #51 by jspahrsummers (2012-11-26 14:50:47+00:00)
Title: Preserve RBLView's layer properties when moving superviews/windows

AppKit tends to destroy and recreate the layer on 10.7, so custom properties (even those not touched by AppKit) can get lost:

> Prior to 10.8, an AppKit managed layer would be destroyed (and removed) when a view was removed from a window or moved to another parent view. This would have the undesired effect of losing any custom properties set on the layer. For any view that explicitly has setWantsLayer:YES, the underlying AppKit managed layer will not be destroyed, and custom set layer properties will not get lost.

(from the [10.8 AppKit release notes](https://developer.apple.com/library/mac/#releasenotes/Cocoa/AppKit.html#//apple_ref/doc/uid/TP30000741))

Also added `RBLView.cornerRadius`, so that we can preserve that too.