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 22 2018
Problem solving: The strange case of the scrolling SpriteKit View
(Xcode 9.3; macOS 10.12.6, Swift 4) If you want a challenge, I recommend you try to implement ‘scrolling SpriteKitView’ yourself before you read the rest of this article. Update (and spoiler): Due to a bug in InterfaceBuilder’s ‘SKView’, you need to use a ‘custom View’ (NSView) in Interface Builder, and change its type to SKView. […]
By Extelligent Cocoa • Bug Reports, Coding Meta, Interface, SpriteKit • • Tags: NSScrollView, SKView