Jan 3 2017
Limited Stack
(Xcode 8.0, OSX 10.11) For the app I am currently working on, I wanted to implement the following: – user can import a picture – user can change their mind and undo their choice, up to a point – I don’t need to store a million images in my app And there are many ways […]
Jan 8 2017
Awesome Extensions: Selector
Credit for extending Selector goes entirely to Andyy Hope (@AndyyHope) who posted this article on Medium: He looks at the problem of Swift selector syntax being somewhat unwieldy, and turns it into [code language=”plain”]fileprivate extension Selector { static let buttonTapped = #selector(ViewController.buttonTapped(_:)) }[/code] Thanks to fileprivate, you don’t get namespacing conflicts. Awesome. So I […]
By Extelligent Cocoa • Extensions, Wiki • • Tags: NotificationCentre, NSNotification.Name, Selector