OS X Support

Apply the categories on `NSView` instead of `UIView` on OS X.