github/twui — pull request #65 by jspahrsummers (2012-09-04 21:17:05+00:00)
Title: Conditionalize flippedness for < 10.8 and 10.8+

#49 redux. #37 redux redux.

Apparently, the behavior of invoking `renderInContext:` on the layer of a layer-backed `NSView` silently changed in 10.8. `isFlipped` on the view, the graphics context, and the layer all return the same values across the different OS versions, so doing a system version check seemed to be the only way to really fix this.