Read a 2020 follow-up to this story here: No more [weak self], or the weird new future of delegation
Alright, no additional introductions this time — I’ll just cut straight to the point:
In Cocoa, TimeInterval (ex NSTimeInterval) is the only thing that defines time. But, actually, it’s just a typealias for Double, and so it doesn’t have any descriptive meaning. Just a number. It’s not that…
TimeInterval
NSTimeInterval
Double
NSCache is an amazing Cocoa API which is often overlooked by the developers. NSHipster has an amazing article on it, so I’ll go straight to business.
NSCache
UITextField
The concept of the “first launch” is crucial for many apps. You may want to show a quick…