NSNotificationCenter vs Delegation – An Analysis

In Fundamentals of NSNotificationCenter in Swift, a commenter asked me to elaborate on a response I’d given to a dialog going on below the blog post. I had stated: If you need a more structured environment around your [instance]-to-[instance] communication, delegates … are probably a better choice [than NSNotificationCenter]. I’ve been thinking for some time […]

Fundamentals of NSNotificationCenter in Swift

Updated on September 19, 2016 – Xcode 8 & Swift 3.0 The goal of this post is to help you grasp the fundamentals of using NSNotificationCenter in your Swift iOS app. The topic isn’t necessarily new, and there’s no difference except syntax between Objective-C and Swift implementations involving NSNotificationCenter. Even still, I’m hoping to add […]