My project works well on Mac OSX 10.10/10.9, however it works incorrectly in 10.11 with this code:
[(PDFAnnotationInk*)_activeAnnotation removeBezierPath:_path];
[_activeAnnotation setBounds:bound];
// Lazy, redraw entire view.
NSAffineTransform* transform = [NSAffineTransform transform];
[transform translateXBy:-bound.origin.x yBy:-bound.origin.y];
[_path transformUsingAffineTransform:transform];
[(PDFAnnotationInk*)_activeAnnotation addBezierPath:_path];
[[_activeAnnotation page] removeAnnotation: _activeAnnotation];
[self addAnnotationSelector:_activeAnnotation];
When I change this [transform translateXBy:-bound.origin.x yBy:-bound.origin.y];
to
[transform translateXBy:bound.origin.x yBy:bound.origin.y];
The application works correctly on OSX 10.11, but incorrectly on OSX 10.10/10.9...
I don't know why, Does NSAffineTransform have different Coordinate system in latest Mac OS X 10.11? How can I solve this to make the application compatible with both 10.10/9 and 10.11? Thanks.