Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace the NSNotificationCenter mechanism in the quote creation flow #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fellipecaetano
Copy link

After reading through the code, it caught my eye that the quote creation flow uses NSNotificationCenter to notify the list of quotes that a new quote was created. I not a very big fan of NSNotificationCenter, and some of my reasons are described here.

I made a small fix replacing the NSNotificationCenter mechanism by a new one using a segue identifier and a quote creation handler (implemented as a closure in the CreateQuoteTableViewController). I think we can discuss the validity (and code quality) of the fix and if it fits the purpose of the example.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant