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. […]
May 27 2018
The exceedingly strange case of SKView
Xcode 9.3; macOS 10.12.6 This came out of the strange case of the scrolling SpriteKit View, which did – in the end – work fine (as in, my SpriteKit scene was displaying) and failed when I tried to add interactions to it. As a result, I went back to the drawing board, played some more […]
By Extelligent Cocoa • Bug Reports, Graphics, Interface, SpriteKit • • Tags: NSView, SKScene, SKView