Jan 4 2017
Basic Image Transformation
(OSX 10.11, Xcode 8) Create a new app: drop an NSImageView and two buttons into the storyboard, set up an outlet for the image view and two actions – zoomIn and zoomOut for the buttons. 0) Not recommended: scaleUnitSquare @IBAction func zoomOut(_ sender: AnyObject) { imageView.scaleUnitSquare(to: NSSize(width: 0.4, height: 0.4)) } This works perfectly fine. […]
Jun 22 2017
BugReports: NSImageView portrait images
This is an IB bug that, well, bugs me: If you add a portrait image to your asset catalogue and use it in an NSImageView, it gets rotated. The preview is fine, it’s fine if you add it to your project otherwise or load it from file; but from an asset catalogue, it fails.
By Extelligent Cocoa • Bug Reports, Interface • • Tags: NSImageView