Andrew Bancroft 2/5/2015

NSNotificationCenter vs Delegation – An Analysis

Read Original

This article provides a detailed analysis of NSNotificationCenter versus delegation as communication strategies in Swift. It explores questions of expectations, perceived control, impact, and clarity from the perspective of both notifier and listener instances. The author examines what a 'structured environment' means in this context, contrasting the loose coupling of notifications with the more explicit contract of delegates. The analysis helps developers decide which pattern offers greater clarity and structure for their application's architecture.

NSNotificationCenter vs Delegation – An Analysis

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet