Fixed isOpaque return value not matching NSView's.
Removed use of 'pi' which was deprecated in 10.8.
Replaced all float with CGFloat which fixes it working on 10.9.
Fixed Clang analyzer warnings.